Skip to main content
Glama

Answer with Citations (Exa)

answer_question
Read-only

Get a direct answer to a question with cited sources instead of a list of search results. Optionally return a structured answer via JSON schema or add tone and focus instructions.

Instructions

Get a direct answer to a question with cited sources. Use instead of exa_search when you want a synthesized answer, not a list of results. Set outputSchema for a structured answer. For open-ended multi-step research use agent_run.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "answer_question"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoAnswer model: 'exa-fast' (quickest), 'exa' (default), 'exa-pro' (stronger), 'exa-research' (most thorough)
queryYesQuestion to answer
includeTextNoInclude each citation's page text
outputSchemaNoJSON Schema (Draft 7) for a structured answer instead of prose
systemPromptNoExtra instructions for the answer (tone, format, focus)
userLocationNoTwo-letter ISO country code to localize sources (e.g. 'US')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.9.1

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered; the description adds the return-shape behavior — a synthesized answer accompanied by citations — and notes that outputSchema switches it to a structured answer. It does not discuss cost or latency differences between the answer models, but the schema's enum descriptions carry that, so the gap is minor.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, each doing distinct work: purpose, alternative selection, and routing to a research tool. The core capability is front-loaded and there is no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only, open-world question-answering tool with six parameters and no output schema, the description covers purpose, alternatives, and structured-output behavior. It leaves citation mechanics and model trade-offs to the schema, which is acceptable, but a note on when citations may be absent or how deep the answer goes would have completed it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents query, model, includeText, outputSchema, systemPrompt, and userLocation. The description only reinforces outputSchema's effect ('Set outputSchema for a structured answer'), which is a small but real addition beyond the schema text; the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence names a specific verb and resource ('Get a direct answer to a question with cited sources') and immediately contrasts the output shape against exa_search's list of results. An agent can distinguish this from exa_search, code_search, find_similar, or web_fetch without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives an explicit selection rule ('Use instead of exa_search when you want a synthesized answer, not a list of results') and an explicit exclusion with a named alternative ('For open-ended multi-step research use agent_run'). Both the when and the when-not are stated rather than inferred.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.