pplx_smart_query
Run quota-aware Perplexity queries: checks usage limits, routes to the lowest sufficient model, and returns sourced answers with model and quota 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 type — none (model only, no search), web, academic,
social, finance, all, or connector source ID from pplx_connectors().
Omit it to use your saved default (set with pwm config), then web.
conversation_id: Pass the ID from a previous response to continue that thread
files: Local file paths to attach (PDF or image). On Free-tier accounts an
attachment can make the query count as a Pro Search.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | ||
| query | Yes | ||
| intent | No | standard | |
| source_focus | No | ||
| conversation_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |