Skip to main content
Glama
Perplexity Web MCP

Perplexity Web MCP

by jacob-bd

pplx_query

Query Perplexity AI with explicit model selection. COSTS 1 PRO SEARCH QUERY per call.

Instructions

Query Perplexity AI with explicit model selection. COSTS 1 PRO SEARCH QUERY per call.

Prefer pplx_smart_query for automatic quota-aware routing. Use this only when you need a specific model or thinking mode. Omitted model, thinking, and source_focus fall back to saved defaults (set with pwm config in the CLI), then to auto/web/off.

Args: query: The question to ask model: Model to use - auto, sonar, deep_research, gpt61_sol, gpt6_astra, gemini4_carbon, gemini4_hydrogen, gemini_pro, claude_sonnet, claude_opus, claude_opus55, claude_fable52, grok47, nemotron, glm53, kimi_k3 (any live catalog identifier is also accepted). An unknown name returns an error with close-match suggestions. thinking: Enable extended thinking mode (available for gpt61_sol, gpt6_astra, gemini4_carbon, gemini4_hydrogen, claude_sonnet, claude_opus, claude_opus55, claude_fable52, grok47; always on for glm53 and kimi_k3) source_focus: Source type - none (model only, no search), web, academic, social, finance, all, or connector source ID from pplx_connectors() files: Local file paths to attach (PDF or image). On Free-tier accounts an attachment can make the query count as a Pro Search.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "pplx_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesNo
modelNo
queryYes
thinkingNo
source_focusNo
conversation_idNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.17.0
    • changedInput schema / properties / model / anyOf
      Previous value: -[
      -  {
      -    "enum": [
      -      "auto",
      -      "sonar",
      -      "deep_research",
      -      "gpt56_terra",
      -      "gpt56_sol",
      -      "gpt6_sol",
      -      "grok45",
      -      "grok47",
      -      "claude_sonnet",
      -      "claude_opus",
      -      "claude_opus55",
      -      "gemini_pro",
      -      "gemini38",
      -      "nemotron",
      -      "glm52",
      -      "glm53",
      -      "kimi_k26",
      -      "kimi_k3"
      -    ],
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "enum": [
      +      "auto",
      +      "sonar",
      +      "deep_research",
      +      "gpt61_sol",
      +      "gpt6_astra",
      +      "gemini4_carbon",
      +      "gemini4_hydrogen",
      +      "gemini_pro",
      +      "claude_sonnet",
      +      "claude_opus",
      +      "claude_opus55",
      +      "claude_fable52",
      +      "grok47",
      +      "nemotron",
      +      "glm53",
      +      "kimi_k3"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. Changed11 schema fields changedv0.16.0
    • addedInput schema / properties / files
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • addedInput schema / properties / model / anyOf
      Added value: +[
      +  {
      +    "enum": [
      +      "auto",
      +      "sonar",
      +      "deep_research",
      +      "gpt56_terra",
      +      "gpt56_sol",
      +      "gpt6_sol",
      +      "grok45",
      +      "grok47",
      +      "claude_sonnet",
      +      "claude_opus",
      +      "claude_opus55",
      +      "gemini_pro",
      +      "gemini38",
      +      "nemotron",
      +      "glm52",
      +      "glm53",
      +      "kimi_k26",
      +      "kimi_k3"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / model / default
      Previous value: -"auto"New value: +null
    • removedInput schema / properties / model / enum
      Removed value: -[
      -  "auto",
      -  "sonar",
      -  "deep_research",
      -  "gpt56_terra",
      -  "gpt56_sol",
      -  "grok45",
      -  "claude_sonnet",
      -  "claude_opus",
      -  "gemini_pro",
      -  "nemotron",
      -  "glm52",
      -  "kimi_k26"
      -]
    • removedInput schema / properties / model / type
      Removed value: -"string"
    • addedInput schema / properties / source_focus / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / source_focus / default
      Previous value: -"web"New value: +null
    • removedInput schema / properties / source_focus / type
      Removed value: -"string"
    • addedInput schema / properties / thinking / anyOf
      Added value: +[
      +  {
      +    "type": "boolean"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / thinking / default
      Previous value: -falseNew value: +null
    • removedInput schema / properties / thinking / type
      Removed value: -"boolean"
  3. Changed1 schema field changedv0.14.7
    • changedInput schema / properties / model / enum
      Previous value: -[
      -  "auto",
      -  "sonar",
      -  "deep_research",
      -  "gpt54",
      -  "gpt55",
      -  "claude_sonnet",
      -  "claude_opus",
      -  "gemini_pro",
      -  "nemotron",
      -  "glm52",
      -  "kimi_k26"
      -]New value: +[
      +  "auto",
      +  "sonar",
      +  "deep_research",
      +  "gpt56_terra",
      +  "gpt56_sol",
      +  "grok45",
      +  "claude_sonnet",
      +  "claude_opus",
      +  "gemini_pro",
      +  "nemotron",
      +  "glm52",
      +  "kimi_k26"
      +]
  4. First observedv0.14.0

TDQS

A4.6/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden and does so unusually well: it discloses the per-call cost ("COSTS 1 PRO SEARCH QUERY per call"), the silent fallback chain for omitted model/thinking/source_focus (saved config, then auto/web/off), and the error behavior for unknown model names. It stops short of describing side effects such as conversation persistence, which is where conversation_id comes in.

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?

Purpose and cost are front-loaded ahead of the routing advice, and the Args block is scannable per-parameter. Slightly heavy given the long model enumeration, but each line carries operational value rather than filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so returns need no explanation, and the description covers the non-obvious risks: quota cost, default-resolution order, and per-model thinking availability. For a six-parameter tool with zero schema coverage, this is effectively complete apart from the unmentioned conversation_id.

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

Parameters4/5

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

Schema coverage is 0%, so the description must compensate, and it documents five of six parameters with real added meaning beyond the schema: the full model catalog, which models support thinking, the source_focus vocabulary, and the Free-tier attachment caveat. The gap is conversation_id, which appears in the schema but nowhere in the description, so its linking semantics are unexplained.

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?

States a specific verb and resource ("Query Perplexity AI") plus the defining scope qualifier ("with explicit model selection"), which immediately separates it from the sibling pplx_smart_query that does automatic routing. An agent can pick correctly without opening either schema.

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

Usage Guidelines5/5

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

Explicitly names the preferred alternative (pplx_smart_query) for the default case and gives the exact condition that selects this tool instead: "Use this only when you need a specific model or thinking mode." Both the when and the when-not are stated.

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