Skip to main content
Glama

Ask Logged-In Gemini Web (1-Call Deterministic Recipe)

browser_gemini_ask

Send a prompt to your logged-in Gemini Web tab and get the completed answer in one call for Notebook, Deep Research, or second-opinion review, with automatic completion detection.

Instructions

Deterministic single-call recipe for querying the user's logged-in Gemini Web tab (e.g. for Notebook / Deep Research / second-opinion review) with 0 DOM snapshot tokens and automatic generation-completion detection. Use only when Gemini Web's unique capabilities or independent review add value.

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": {
      "prompt": "<prompt>"
    },
    "name": "browser_gemini_ask"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptYesPrompt to send to Gemini Web.
tab_idNoOptional existing Gemini tab id to continue in.
new_chatNoOpen a fresh Gemini chat tab instead of reusing an existing one (default: true).
close_tabNoClose the newly opened temporary tab after reading the answer (default: false).
timeout_msNoMax wait timeout for response completion in ms (default: 90000).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.8.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations declare a non-read-only, non-idempotent, non-destructive local operation, and the description adds genuinely non-obvious behavior beyond them: no DOM snapshot token cost and automatic generation-completion detection, which tells the agent the call blocks until the answer finishes. It omits prerequisites such as an existing logged-in browser session and what happens on login expiry or timeout, but the added context is substantive.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, no filler: the capability and its efficiency/completion traits come first, and the usage restriction comes second. Every clause carries information an agent needs for selection.

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 five-parameter, no-output-schema tool with full annotation coverage, the description covers what the call does, its cost profile and its blocking behavior, which is most of what an agent needs. The remaining gap is that it never says what is returned (answer text only, or also page state) nor what happens on failure, which matters for a browser-driving tool without an output schema.

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 prompt, tab_id, new_chat, close_tab and timeout_ms are all documented with defaults and bounds in the schema itself. The description adds no parameter-level meaning, such as how tab_id interacts with new_chat or what happens when both are supplied, so the baseline 3 applies.

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 names a specific verb (querying) and resource (the user's logged-in Gemini Web tab), and the parenthetical examples (Notebook / Deep Research / second-opinion review) make the intent concrete. It is distinguishable from generic siblings like browser_type or browser_evaluate because it advertises a single-call, completion-detecting flow. It stops short of stating plainly that it returns Gemini's answer text, which keeps it from a 5.

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?

There is a real usage constraint: 'Use only when Gemini Web's unique capabilities or independent review add value,' which tells the agent this is not the default path for browsing. However, it never names the alternative tools (e.g. browser_navigate + browser_type) that should be used instead when Gemini is not needed, so the routing decision 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.