Skip to main content
Glama

AIsa Web Search & Research

Sonar Deep Research — exhaustive research & comprehensive reports

post_perplexity_sonar_deep_research
Read-onlyIdempotent

Commission a report: this endpoint runs many searches and writes a long, cited document. model (required, sonar-deep-research) and messages in; choices[0].message.content, citations, search_results[] and usage out, where usage also reports num_search_queries and reasoning_tokens. ⚠️ Budget for the wait: a two-sentence question measured 192 seconds and returned 86 KB after 10 upstream searches — roughly 60 times slower and 10 times larger than post_perplexity_sonar, at the same flat $0.012 per request. Many clients time out well before it answers, so call it only when a report is genuinely the deliverable, and never in a loop. For anything you would read in one sitting, the other three Perplexity endpoints answer in seconds.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelYesThe Sonar model to use.
top_kNoThe number of tokens to keep for top-k filtering.
top_pNoNucleus sampling parameter. The model considers tokens with top_p probability mass.
streamNoWhether to stream the response using server-sent events.
messagesYesA list of messages comprising the conversation so far.
max_tokensNoThe maximum number of tokens to generate in the response.
temperatureNoSampling temperature between 0 and 2. Lower values make output more focused and deterministic.
search_contextNoControls how much search context to use. Affects per-request cost.low
presence_penaltyNoPenalizes new tokens based on whether they appear in the text so far. Positive values increase the likelihood of talking about new topics.
return_citationsNoWhether to return citations and search results in the response.
frequency_penaltyNoPenalizes new tokens based on their existing frequency in the text so far. Positive values decrease the likelihood of repeating the same line verbatim.
search_domain_filterNoLimit search to specific domains.
search_recency_filterNoFilter search results by recency.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

The description goes well beyond the annotations by disclosing the extreme latency and response size ('a two-sentence question measured 192 seconds and returned 86 KB after 10 upstream searches'), the timeout risk ('Many clients time out well before it answers'), and the flat pricing. It also warns against looping, which is critical behavioral context for an agent deciding whether to call this tool.

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?

The description is dense but every sentence earns its place: the core purpose, the required model, the output shape, the performance warning with concrete numbers, and the routing guidance. The warning is front-loaded after the purpose, and the sibling comparison closes it efficiently.

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

Completeness5/5

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

For a complex, slow, report-generating tool with an output schema and full parameter documentation, the description covers everything an agent needs: what it returns, how long it takes, when to use it, and when not to. The output schema handles return-value details, so nothing critical is missing.

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 all 13 parameters. The description adds the required model value ('sonar-deep-research') and names the output fields, but it doesn't add new meaning to individual parameters beyond what the schema provides. Baseline 3 is appropriate.

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 description opens with a specific verb and resource ('Commission a report: this endpoint runs many searches and writes a long, cited document'), which clearly distinguishes it from the other Perplexity endpoints. It also names the required model and the key output fields, so an agent can tell this is the deep-research report generator among the sibling tools.

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?

The description gives explicit when-to-use guidance: 'call it only when a report is genuinely the deliverable, and never in a loop.' It also contrasts with the sibling endpoints ('For anything you would read in one sitting, the other three Perplexity endpoints answer in seconds'), which is exactly the kind of alternative routing an agent needs.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources