Exa Agent

作者 exa-labs15ffb50519e7无许可证5K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库今天更新

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.

AI 生成的概览

指导通过 MCP 使用 Exa Agent 进行多步骤网络研究,涵盖名单构建、数据丰富、结构化输出与覆盖度验证。

功能
该技能指导智能体如何通过 MCP 操作 Exa Agent 进行多步骤网络研究。它说明何时使用 Exa Agent、何时编写批处理脚本,如何准备目标、范围、细分和输出模式,以及如何运行、延续和验证研究任务。内容还涉及 Exa Connect 数据提供方、延续模式、覆盖度表述和失败处理。
适用场景
适用于开放式发现、名单构建、人物或公司调研、多跳调查、结构化研究输出,或对先前研究任务的跟进。也适用于对已知输入行进行大规模重复数据丰富,此时它建议使用确定性批处理脚本而非手动调用工具。
运行要求
需要 Exa Agent 的 agent_run MCP 工具及相应网络访问。部分任务可能需要 Exa Connect 提供方,如 fiber、financial_datasets、similarweb、baselayer、affiliate、particle 或 jinko,具体取决于用户的 Exa 账户。该技能不附带脚本,仅为说明文档。

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 enrichment
  • financial_datasets: ticker-based news for US public companies
  • similarweb: website traffic estimates, rankings, and competitor discovery
  • baselayer: US business verification, officers, registrations, and KYB
  • affiliate: product catalog search, pricing, brands, and merchant links
  • particle: podcast transcript search with speaker attribution and timestamps
  • jinko: 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:

  1. 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.
  2. 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 outputSchema before 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 maxItems to 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", or format: "phone" when needed.

Example company-list schema:

json
{  "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:

json
{  "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

  1. Run the agent

    • Call agent_run.
    • Omit effort to use the tool's low default. Choose auto or a higher effort only when the user asks for more depth or the task clearly requires it.
    • Include outputSchema for structured work.
    • Use input.data for known rows.
    • Use input.exclusion for entities already returned or disallowed.
    • Add dataSources only 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 id when a later continuation may use previousRunId.
    • If the response has status: "running", call agent_run again with that runId until outputReady is 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 runId resumption). The MCP call window is ~750 seconds; if a ZDR run cannot finish in one call, retry with lower effort or split the task. previousRunId is not available on ZDR.
  2. Read the result

    • Wait until outputReady is true (or status is failed/cancelled).
    • Read both output.structured and output.grounding.
    • Do not assume results are exhaustive just because the run completed.
  3. Validate coverage

    • Check row count against target.
    • Check segment coverage.
    • Deduplicate entities.
    • Inspect evidence quality.
    • Identify gaps.
  4. Continue if needed

    • Use agent_run with previousRunId for follow-up/refinement.
    • Use input.exclusion to avoid resurfacing prior results.
    • Segment large universes into multiple runs if one run is too broad.
  5. 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:

  1. Write a script instead of issuing many MCP calls manually.
  2. 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
  3. Run the script.
  4. Read the output file.
  5. 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.

来源与署名

来源:exa-labs/exa-mcp-server位于skills/exa-agent提交15ffb50

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架