pplx_smart_query
Quota-aware query tool that automatically selects the optimal Perplexity AI model based on query complexity, returning cited answers and usage metadata.
Instructions
RECOMMENDED DEFAULT TOOL. Quota-aware query — checks limits and picks the best model automatically.
USE THIS FOR EVERY QUERY unless the user explicitly requests a specific model. Default to intent='quick' for most lookups — it routes to Sonar 2 when appropriate. Only escalate intent when the question genuinely requires it.
Intent guide (choose the LOWEST sufficient level):
quick: Facts, definitions, simple lookups, 'what is X' → Sonar 2 (check pplx_usage)
standard: How-to, comparisons, explanations needing web sources → 1 Pro Search
detailed: Complex multi-source analysis, technical deep-dives → 1 Pro Search (premium model)
research: Comprehensive report → 1 Deep Research (scarce monthly quota, user must request)
Response includes a metadata block showing the model used, routing reason, and current quota snapshot.
Args: query: The question to ask intent: Query complexity — quick (default for most), standard, detailed, research source_focus: Source aliases, raw source IDs, or comma-separated source list
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| intent | No | standard | |
| source_focus | No | web |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |