Skip to main content
Glama

gemini_search

Searches the web with Google grounding and returns a synthesized answer with source citations, so you can verify current facts, releases, and documentation.

Instructions

Search the web using Gemini with Google Search grounding. USE THIS TOOL WHEN: (1) You need current, up-to-date information that may be beyond your training data. (2) You need to look up latest versions, release notes, or changelogs. (3) You need to research a topic with real-time web results. (4) You need to verify facts or find documentation URLs. Gemini will automatically search Google and synthesize results into a comprehensive answer with source citations. This is more powerful than a raw search engine — it reads, understands, and summarizes the search results.

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": "gemini_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoOverride the default Gemini model. If omitted, uses the server default.
queryYesThe search query or question. Be specific for better results. Examples: "Next.js 15 breaking changes", "CVE-2024-XXXX details and mitigation".
contextNoOptional background context to help Gemini refine the search. For example: "I am migrating a Node.js 18 project to Node.js 22" helps Gemini focus on relevant migration-specific results.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose real behavior: Gemini automatically issues Google searches, synthesizes rather than returns raw hits, and includes source citations. It omits failure modes, latency, or how results are bounded, but the core behavior and output shape are covered.

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 core action and then a scannable numbered usage list, which is easy for an agent to parse. The closing sentence ('more powerful than a raw search engine — it reads, understands, and summarizes') largely repeats the synthesis claim made earlier and could be cut.

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 three-parameter tool with no output schema, the description adequately explains that the return value is a synthesized answer with citations, so an agent knows what to expect. Missing only edge-case detail such as how it behaves when no web results are relevant.

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?

Schema description coverage is 100%, so all three parameters (query, context, model) are already documented with examples in the schema. The description adds no per-parameter guidance such as how to phrase queries or when to use the context field, so baseline 3 applies.

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 ('Search the web using Gemini with Google Search grounding') and makes the mechanism explicit, which separates it from the sibling analysis/review/summarize tools that operate on supplied content rather than the live web.

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?

Provides an explicit numbered 'USE THIS TOOL WHEN' list covering current info, version/changelog lookups, real-time research, and fact verification, which gives clear positive context. It stops short of naming a sibling alternative or a when-not condition, so routing is only half-covered.

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