Skip to main content
Glama

AIsa Web Search & Research

Sonar Pro — advanced search for complex queries

post_perplexity_sonar_pro
Read-onlyIdempotent

Ask a question that needs more than one search pass and get a written answer with citations. Same request and response shape as post_perplexity_sonar — model (required, sonar-pro) and messages in, choices[0].message.content, citations, search_results[] and usage out. Measured at about 10 seconds, roughly three times sonar, for the same flat $0.012 per request. Use it for questions with several parts or follow-ups. For a single lookup sonar answers in a third of the time at the same price; when the difficulty is reasoning rather than retrieval, post_perplexity_sonar_reasoning_pro shows its working.

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.6/5.0
Behavior4/5

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

Annotations already declare the tool read-only, idempotent, and non-destructive, so the safety profile is covered. The description adds behavioural context beyond annotations: latency (~10s), cost ($0.012 flat), the fact it performs more than one search pass, and the response shape. It also notes performance relative to `sonar` (three times slower) which is not in structured data.

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 concise sentences, each carrying essential information: purpose, performance/relationship to sibling, and selection criteria. It is front-loaded with the outcome ('written answer with citations') and avoids repetition of schema details.

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 13-parameter tool with complete schema coverage and output schema, the description covers the key selection criteria, behavioral expectations, performance, and cost. It also routes the agent to the correct sibling tool. Minor gaps such as streaming or filtering parameters are already documented in the schema, so the description is sufficient.

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

Parameters4/5

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

Schema description coverage is 100%, so baseline is 3. The description adds specific guidance that `model` is required and expected to be `sonar-pro`, and that `messages` is the input, which pins down the primary parameter beyond the generic enum. This adds value above the schema.

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 states the tool performs a multi-pass search and returns a written answer with citations. It explicitly differentiates from siblings by naming `post_perplexity_sonar` for single lookups and `post_perplexity_sonar_reasoning_pro` for reasoning-heavy questions. This is a specific verb+resource statement with clear sibling differentiation.

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 explicitly says 'Use it for questions with several parts or follow-ups' and contrasts with `sonar` for single lookups and `sonar_reasoning_pro` for reasoning, giving clear when-to-use and when-not-to-use guidance. It also notes the same request/response shape as `sonar`, which helps agents migrate.

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