Single tool with mostly complete schema and documentation, but several definition quality gaps limit production readiness. Tool name lacks clear verb phrasing. Description is comprehensive but somewhat verbose. Input schema is well-structured with proper types and enums. However, output schema is not documented, the tool returns raw API response as plain text without indicating structure. Error handling guidance is minimal. Tool accepts only one model (llama-3.1-sonar-small-128k-online) which signals incomplete implementation. No mention of pagination, rate limiting, or timeout recovery patterns despite the description mentioning timeout errors.
Perplexity equips agents with a specialized tool for efficiently gathering source-backed information from the internet, ideal for scenarios requiring research, fact-checking, or contextual data to inform decisions and responses. Each response includes citations, which provide transparent references to the sources used for the generated answer, and choices, which contain the model's suggested responses, enabling users to access reliable information and diverse perspectives. This function may encounter timeout errors due to long processing times, but retrying the operation can lead to successful completion. [Response structure] - id: An ID generated uniquely for each response. - model: The model used to generate the response. - object: The object type, which always equals `chat.completion`. - created: The Unix timestamp (in seconds) of when the completion was created. - citations[]: Citations for the generated answer. - choices[]: The list of completion choices the model generated for the input prompt. - usage: Usage statistics for the completion request.
Tool name does not start with action verb. 'ask_perplexity' is imperative but generic; 'search_perplexity' or 'query_perplexity_with_citations' would be clearer. Current name doesn't self-document what distinguishes this from other research tools.
Output schema not documented. Tool returns raw HTTP response text via TextContent. Description promises structured response (id, model, object, created, citations[], choices[], usage) but actual return type is unstructured text. LLMs cannot extract fields reliably without parsing plain text.
No input validation or error recovery guidance. Description states 'may encounter timeout errors...retrying can lead to successful completion' but tool implementation has no retry logic, exponential backoff, or actionable error messages. Timeouts return generic RuntimeError without retry guidance.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 52 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 43 | - | v1 |
API credentials exposed via environment variable without validation. PERPLEXITY_API_KEY is loaded at module import time; missing key fails silently at runtime. No validation that the key exists before attempting API calls.
Limited model selection. Only one model (llama-3.1-sonar-small-128k-online) is enabled; larger models are commented out. This suggests incomplete testing or known instability. Tool description and schema do not explain this constraint or offer guidance for when to use this tool vs. larger models.
No timeout enforcement or retry guidance in implementation. Tool calls httpx with timeout=None (infinite wait), but description promises timeout errors and retry recovery. This mismatch risks blocking the entire agent indefinitely.