Skip to main content
Glama
chaodongzhang

gemini-cli-bridge

Googlesearch

GoogleSearch

Search the web by query via Gemini CLI built-in or Google Programmable Search, auto-selecting available credentials and returning answers or result snippets.

Instructions

Search tool (defaults to Gemini CLI built-in GoogleSearch).

Modes:

  • mode="gemini_cli": force CLI built-in (no keys; requires signed-in gemini CLI)

  • mode="gcs": force Google Programmable Search (requires GOOGLE_CSE_ID + GOOGLE_API_KEY)

  • mode=None/"auto": auto-select (use gcs if both keys present, else gemini_cli)

Returns JSON:

  • gemini_cli: { ok: true, mode: "gemini_cli", answer: string }

  • gcs: { ok: true, mode: "gcs", results: [{title, link, snippet}] } on error: { ok: false, error, results? }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNo
limitNo
modelNogemini-2.5-pro
queryYes
cse_idNo
api_keyNo
timeout_sNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A3.6/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 disclosure burden and does well: it names authentication requirements (signed-in gemini CLI, or GOOGLE_CSE_ID + GOOGLE_API_KEY) and describes success and error response shapes. It omits rate limits, timeouts behavior, or failure/retry characteristics, but the credential and fallback behavior is solidly communicated.

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 definition is front-loaded with the core purpose, then a compact mode list and return-value summary. It is reasonably tight, though the return-shape block partly duplicates the existing output schema and could be trimmed.

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

Completeness3/5

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

An output schema exists, so the return-value detail is not strictly needed, and the mode logic plus credentials are covered. But with 7 parameters, no annotations, and 0% schema documentation, the unexplained limit/model/timeout_s parameters leave the definition short of complete for correct invocation.

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 0% across 7 parameters, so the description must compensate. It meaningfully explains the 'mode' parameter's allowed values and the roles of cse_id/api_key, but leaves limit, model, and timeout_s completely undefined in both schema and prose.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb+resource (search tool) and elaborates its three operating modes with concrete behavior for each. It is clear what the tool does, but it never distinguishes itself from near-identical siblings such as GeminiGoogleSearch or gemini_search, leaving the agent to guess which search tool to pick.

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

Usage Guidelines3/5

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

It provides explicit mode-selection rules ('use gcs if both keys present, else gemini_cli') and names the credential prerequisites for each mode, which is useful decision logic. However, it gives no guidance on when to use this tool versus the other search siblings in the namespace, so usage is only partially covered.

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