Skip to main content
Glama
scraperapi-mcp-server

scraperapi-mcp-server

Official
by scraperapi

Perplexity Search (Beta)

perplexity_search
Read-onlyIdempotent

Ask Perplexity a question and retrieve its parsed answer with cited web sources for AI search monitoring or brand visibility checks.

Instructions

Beta: success rate and response time can vary; retry failed requests.

Ask Perplexity (perplexity.ai) a question and retrieve its parsed answer.

Returns Perplexity's answer as structured data, with the web sources it cites, for a prompt.

When to use:

  • Seeing what Perplexity answers for a prompt, and which sources it cites

  • Brand visibility or AI search monitoring on Perplexity

When NOT to use:

  • Answers from ChatGPT (use 'chatgpt_search')

  • Answers from the Gemini chat app (use 'google_gemini')

  • Google AI Mode answers in Google Search (use 'google_ai_mode')

Args: params (PerplexitySearchParams): query (required) plus optional output_format.

Returns: str: JSON (default) or CSV containing the structured AI answer.

Raises: ToolError: If the API key is missing, the rate limit is exceeded, or the request fails.

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": {
      "params": "<params>"
    },
    "name": "perplexity_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
paramsYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.2.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, openWorld, non-destructive), and the description adds genuinely new behavior: the beta instability warning with retry guidance, and the failure modes (missing API key, rate limit exceeded, request failure). It does not describe latency expectations or result-set size, which is the main remaining gap.

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?

Front-loaded with the beta caveat and the core purpose, then cleanly sectioned into When to use / When NOT to use / Args / Returns / Raises. Slightly verbose in repeating the return shape twice, but every section carries usable information.

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, yet the description still summarizes the return (JSON or CSV structured answer) and enumerates the error conditions. Combined with explicit sibling routing and the beta caveat, an agent has everything needed to call this correctly and interpret failures.

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

Parameters3/5

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

The description restates the schema (query required, output_format optional) but adds no meaning beyond it, and the schema coverage metric is reported as 0%. It does not clarify what output_format changes about the answer payload beyond what the schema's own enum descriptions already say, so this is only minimum-viable.

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: 'Ask Perplexity (perplexity.ai) a question and retrieve its parsed answer.' It also names the distinguishing output, the cited web sources, so an agent can tell it apart from the sibling search tools without opening the 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?

Provides explicit 'When to use' bullets (Perplexity answers and cited sources, brand/AI search monitoring) and a 'When NOT to use' list that routes to the correct siblings by name (chatgpt_search, google_gemini, google_ai_mode). Nothing is left to inference about which tool to pick.

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