pplx_smart_query
Automatically routes your questions to the appropriate Perplexity model by checking usage limits and matching your intent. Choose from quick, standard, detailed, or research modes.
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 type — none (model only, no search), web, academic, social, finance, all, or connector source ID from pplx_connectors()
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| intent | No | standard | |
| source_focus | No | web | |
| conversation_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |