Exa Agent
Use Exa Agent for multi-step web research, list-building, enrichment, structured output, run continuation, and coverage validation. Exa Agent can access additional data providers: fiber, financial_datasets, similarweb, baselayer, affiliate, particle, and jinko.
How do I install this agent skill?
npx skills add https://github.com/exa-labs/exa-mcp-server --skill exa-agentIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill enables multi-step web research and data enrichment through the Exa Agent. It involves generating local scripts for data processing and ingesting content from the web, which introduces standard risks associated with dynamic code execution and indirect prompt injection from untrusted external sources.
- Socketpass
No alerts
- Snykwarn
Risk: MEDIUM · 1 issue
What does this agent skill do?
Exa Agent Research
You are operating Exa Agent through MCP. Exa Agent is a tool that allows you to run multi-step web research, list-building, enrichment, structured output, run continuation, and coverage validation.
Required tools
agent_run
Exa Connect providers
When a run needs premium partner data alongside Exa web search, pass dataSources to agent_run.
Use only the currently usable self-serve providers:
fiber: B2B company, people, jobs, and contact enrichmentfinancial_datasets: ticker-based news for US public companiessimilarweb: website traffic estimates, rankings, and competitor discoverybaselayer: US business verification, officers, registrations, and KYBaffiliate: product catalog search, pricing, brands, and merchant linksparticle: podcast transcript search with speaker attribution and timestampsjinko: travel destination discovery ranked by fare
Do not suggest request-only providers unless the user explicitly says their Exa account already has them enabled.
Decision tree
Choose the work surface before acting:
-
Known input rows plus repeated same-shape enrichment at scale
- Write a deterministic script using Exa APIs directly.
- Use bounded concurrency, exponential backoff, checkpoints, and a stable output file.
- Read the output file and synthesize from it.
- Do not burn context manually looping over hundreds of identical tool calls.
-
Open-ended universe definition, list-building, people/company discovery, multi-hop research, structured research, or follow-up over previous work
- Use Exa Agent.
- Define the objective and
outputSchemabefore creating the run.
Before creating a run
Always write down:
- Objective: what the run is meant to answer.
- Universe: what entities qualify.
- Segments: geographies, industries, personas, dates, asset classes, or other partitions.
- Coverage target: desired count, maximum count, and what "good enough" means.
- Output fields: columns needed in the final answer.
- Evidence requirements: URLs, source titles, dates, and confidence.
- Exclusions: prior results or disallowed entities.
If the user uses relative time like "recent", "last 6 months", or "post-IPO", calculate exact dates from today's date first.
Schema rules
Use outputSchema for list-building, enrichment, finance/company research, and repeatable workflows.
Rules:
- Use a top-level object.
- Put list rows in a named array field.
- Add
maxItemsto arrays when possible. - Include source/evidence fields, not just conclusions.
- Include stable identifiers: company name, website/domain, person LinkedIn URL, ticker, CIK, etc.
- Include confidence or rationale fields for fuzzy judgments.
- Keep required fields limited to what must exist.
- Use
format: "uri",format: "email", orformat: "phone"when needed.
Example company-list schema:
{
"type": "object",
"properties": {
"companies": {
"type": "array",
"maxItems": 50,
"items": {
"type": "object",
"properties": {
"company_name": { "type": "string" },
"website": { "type": "string", "format": "uri" },
"segment": { "type": "string" },
"why_it_qualifies": { "type": "string" },
"evidence_url": { "type": "string", "format": "uri" },
"confidence": { "type": "string", "enum": ["low", "medium", "high"] }
},
"required": ["company_name", "website", "why_it_qualifies", "evidence_url"]
}
},
"coverage_notes": { "type": "string" },
"known_gaps": {
"type": "array",
"items": { "type": "string" }
}
},
"required": ["companies", "coverage_notes"]
}
Example with Exa Connect:
{
"tool": "agent_run",
"arguments": {
"query": "Find 10 fast-growing B2B SaaS companies and return estimated monthly website visits from Similarweb.",
"dataSources": [
{ "provider": "similarweb" }
],
"outputSchema": {
"type": "object",
"properties": {
"companies": {
"type": "array",
"maxItems": 10,
"items": {
"type": "object",
"properties": {
"name": { "type": "string" },
"domain": { "type": "string" },
"monthlyVisits": {
"type": "number",
"description": "Estimated monthly visits from Similarweb"
}
},
"required": ["name", "domain", "monthlyVisits"]
}
}
},
"required": ["companies"]
}
}
}
Exa Agent workflow
-
Run the agent
- Call
agent_run. - Omit
effortto use the tool'slowdefault. Chooseautoor a higher effort only when the user asks for more depth or the task clearly requires it. - Include
outputSchemafor structured work. - Use
input.datafor known rows. - Use
input.exclusionfor entities already returned or disallowed. - Add
dataSourcesonly when one of the self-serve Exa Connect providers is clearly useful. - Name the provider-specific data you want in both the query and the schema so Agent uses the provider instead of falling back to web search.
- Save the returned
idwhen a later continuation may usepreviousRunId. - If the response has
status: "running", callagent_runagain with thatrunIduntiloutputReadyis true. This continuation is available for retained runs that outlive one MCP call. - Zero Data Retention (ZDR) teams: new runs always stream, and output is only available on that live stream (not via
runIdresumption). The MCP call window is ~750 seconds; if a ZDR run cannot finish in one call, retry with lower effort or split the task.previousRunIdis not available on ZDR.
- Call
-
Read the result
- Wait until
outputReadyis true (or status is failed/cancelled). - Read both
output.structuredandoutput.grounding. - Do not assume results are exhaustive just because the run completed.
- Wait until
-
Validate coverage
- Check row count against target.
- Check segment coverage.
- Deduplicate entities.
- Inspect evidence quality.
- Identify gaps.
-
Continue if needed
- Use
agent_runwithpreviousRunIdfor follow-up/refinement. - Use
input.exclusionto avoid resurfacing prior results. - Segment large universes into multiple runs if one run is too broad.
- Use
-
Final answer
- State what was done.
- Present structured results.
- State coverage and limitations.
- Say "best-effort discovery" unless exhaustiveness was explicitly scoped and validated.
Continuation patterns
Use previousRunId when:
- narrowing a list
- filling missing fields
- asking for another segment
- validating a prior set
- requesting "more like these"
Do not use previousRunId when:
- the prior run failed or is still running
- the new task is unrelated
- you need clean independent coverage for another segment
For independent segments, create separate runs and aggregate results yourself.
Exhaustiveness and coverage language
Never claim exhaustive coverage unless all are true:
- The universe is bounded and well-defined.
- Search/discovery strategy covers the main segments.
- The output count and gaps were checked.
- Duplicates were resolved.
- Evidence was inspected.
- Any remaining unknowns are disclosed.
Preferred language when not fully validated:
- "best-effort discovery"
- "high-confidence initial universe"
- "not exhaustive"
- "coverage appears strongest in X and weaker in Y"
Avoid:
- "all companies"
- "complete list"
- "exhaustive"
- "definitive"
unless validation supports it.
Batch Script Mode
If the task requires many parallel Exa calls of the same shape, especially batch enrichment over known companies/people:
- Write a script instead of issuing many MCP calls manually.
- The script must:
- read deterministic inputs from a file
- use bounded concurrency
- use exponential backoff for 429/5xx
- checkpoint partial progress
- write deterministic JSON/CSV/TSV output
- preserve raw API errors per row
- Run the script.
- Read the output file.
- Synthesize from the output.
Use Exa Agent instead of Batch Script Mode when the hard part is discovery, reasoning, multi-hop research, or deciding what to search next.
Failure handling
If a run fails to start:
- Surface the HTTP error and fix schema/auth/input.
- Do not silently fall back to generic web search for Exa Agent-shaped work.
If the run fails:
- Explain the failure from the returned terminal status.
- Create a corrected follow-up/new run only if the correction is clear.
If the run objective/schema is wrong, abort the streaming call. The server will attempt to cancel the upstream run; you will then need to create a new run with the corrected objective/schema.
If output is sparse:
- Continue with
previousRunId. - Add exclusions for prior results.
- Segment the universe.
- Tighten or clarify schema fields.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/exa-labs/exa-mcp-server/exa-agent">View Exa Agent on skillZs</a>