Skip to main content
Glama
scraperapi-mcp-server

scraperapi-mcp-server

Official
by scraperapi

Google Gemini (Beta)

google_gemini
Read-onlyIdempotent

Ask Google Gemini a question and retrieve its parsed answer with cited sources to monitor brand visibility and AI search results.

Instructions

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

Ask Google Gemini (gemini.google.com) a question and retrieve its parsed answer.

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

When to use:

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

  • Brand visibility or AI search monitoring on Gemini

When NOT to use:

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

  • Answers from ChatGPT (use 'chatgpt_search')

  • Answers from Perplexity (use 'perplexity_search')

Args: params (GoogleGeminiParams): query (required) plus optional include_html 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": "google_gemini"
  }
}

Input Schema

NameRequiredDescriptionDefault
paramsYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.2.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/idempotent/non-destructive, so the safety profile is covered. The description adds genuinely useful context beyond them: the Beta reliability caveat with retry advice, the fact that cited sources come back with the answer, and the error conditions (missing API key, rate limit, request failure). It stops short of describing pagination or answer-shape limits, so a 4 rather than 5.

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?

The beta caveat is front-loaded where it matters most, and the when-to-use / when-not-to-use split is easy to scan. The trailing Args/Returns/Raises block re-states what the schema and output schema already encode, which is mild redundancy but not damaging.

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 single-prompt tool with an output schema and full annotation coverage, the description supplies the decision context an agent needs and even spells out failure modes. The only material gap is that the optional parameters remain opaque in prose.

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?

Reported schema description coverage is 0%, so the description must carry the load; it names query as required and include_html/output_format as optional, and clarifies that arguments are wrapped in a params object. However it never explains what include_html or output_format actually do, leaving meaning still locked in the schema's own field descriptions.

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 Google Gemini... a question and retrieve its parsed answer', and explicitly names the sibling services it is not (google_ai_mode, chatgpt_search, perplexity_search). An agent can distinguish this tool from adjacent answer-engine tools without opening any 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 (seeing Gemini's answer and cited sources, brand visibility / AI search monitoring) and a 'When NOT to use' list that routes to three named alternatives with the exact condition that selects each. Nothing 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.