Skip to main content
Glama
devdotbo

Perplexity Web MCP

by devdotbo

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

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
intentNostandard
source_focusNoweb

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Given no annotations, the description carries full burden. It discloses quota checking, automatic model selection, and metadata output (model, routing reason, quota snapshot). The intent guide explains routing behavior. Does not mention rate limits or auth, but these are less critical for a query tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Well-structured with front-loaded purpose and recommendation, then intent guide, then args. Every sentence adds value. Could be slightly shorter but remains clear and effective.

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 query tool with output schema, the description covers usage, intent selection, and parameter semantics adequately. Does not cover error cases or edge scenarios, but for the given complexity and sibling set, it is sufficiently complete.

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

Parameters5/5

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

Schema coverage is 0% (no descriptions in schema), but the description provides rich explanations: intent gets a full guide with examples, source_focus is described though briefly, and query is explained. This adds significant meaning beyond the bare 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?

Clearly states it's a quota-aware query tool that auto-selects the best model, distinguishing it from many sibling query tools like pplx_ask, pplx_query, pplx_sonar, etc. The description positions it as the recommended default, providing specific verb+resource.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly recommends 'USE THIS FOR EVERY QUERY unless the user explicitly requests a specific model.' Provides a detailed intent guide with specific use cases for each level. Lacks explicit when-not-to-use exclusions but context is clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/devdotbo/perplexity-web-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server