Skip to main content
Glama

Poll Gemini Job

gemini-poll
Read-onlyIdempotent

Check the status of an async Gemini job started by ask-gemini or gemini-reply, returning partial output while pending and the full response when complete. Poll about every 2000ms.

Instructions

Poll the status of an async Gemini job started by ask-gemini or gemini-reply. Returns status, partial response (while pending), or the full response (when done). Recommended poll interval: 2000ms. Jobs typically complete in 16–20s.

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": {
      "jobId": "<jobId>"
    },
    "name": "gemini-poll"
  }
}

Input Schema

NameRequiredDescriptionDefault
jobIdYesJob ID returned by ask-gemini or gemini-reply

Output Schema

NameRequiredDescriptionDefault
errorNo
statusYes
responseNo
historyErrorNo
partialResponseNo
historyPersistedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.11.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, idempotent, non-destructive, so the safety profile is covered; the description adds genuinely useful operational context — a 2000ms recommended interval, typical 16–20s completion, and that partial responses are returned while pending.

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?

Three short sentences, front-loaded with purpose, followed by return behavior and timing guidance — no filler or redundancy.

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 one-parameter polling tool with a full annotation set and an output schema, the description covers everything an agent needs: origin, return states, polling cadence, and expected latency.

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 coverage is 100% and the single jobId parameter is fully documented in the schema; the description only reinforces its provenance ('returned by ask-gemini or gemini-reply') without adding format or validation detail beyond structured data.

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 ('Poll the status of an async Gemini job') and immediately identifies the origin tools (ask-gemini, gemini-reply), so an agent can distinguish it from gemini-cancel, gemini-health, or gemini-sessions without inspecting schemas.

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?

Clearly establishes when to use it (after starting a job via ask-gemini or gemini-reply) and supplies a concrete poll cadence and expected duration. It stops short of naming alternatives or stating when not to poll (e.g., after gemini-cancel), leaving a small gap.

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