Skip to main content
Glama
scraperapi-mcp-server

scraperapi-mcp-server

Official
by scraperapi

ChatGPT Search (Beta)

chatgpt_search
Read-onlyIdempotent

Ask ChatGPT a question and retrieve its parsed answer as structured JSON or CSV for brand visibility and AI search monitoring.

Instructions

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

Ask ChatGPT (chatgpt.com) a question and retrieve its parsed answer.

Returns ChatGPT's answer as structured data for a prompt. Sources are collected on a best-effort basis; set sources=true to require them for a successful response, which costs more credits.

When to use:

  • Seeing what ChatGPT answers for a prompt

  • Brand visibility or AI search monitoring on ChatGPT

When NOT to use:

  • Answers from Perplexity (use 'perplexity_search')

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

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

Args: params (ChatgptSearchParams): query (required) plus optional sources and 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": "chatgpt_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?

Goes well past the annotations by disclosing beta reliability variance with retry advice, the credit-cost implication of sources=true, best-effort source collection, and explicit ToolError conditions (missing API key, rate limit, failed request). Auth, cost, and failure behavior are all covered, which annotations alone would not convey.

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-loads the beta caveat and the core action, then uses labeled sections that are easy to scan. The Args/Returns/Raises block is somewhat redundant with the schema and output schema, but each line still 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?

For a single-parameter read tool with an output schema and safety annotations, the description covers the remaining burden: reliability, retry policy, cost tradeoff, and error modes. An agent has everything needed to call it 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 reported schema description coverage is 0%, so the description has to compensate; it does so partially by naming query (required), sources, and output_format, and by explaining that sources=true demands citations at higher credit cost. It adds no syntax, defaults, or format-selection guidance for output_format beyond 'JSON (default) or CSV', leaving a real gap against low coverage.

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 ChatGPT (chatgpt.com) a question and retrieve its parsed answer.' It also makes the boundary explicit against named siblings (perplexity_search, google_gemini, google_ai_mode), so an agent can select it without opening a 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 an explicit 'When to use' list (brand visibility, AI search monitoring) and a 'When NOT to use' list that routes to three specific alternatives with the reason each differs. Nothing about tool selection is left to inference.

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