Skip to main content
Glama

dispatch_gemini_cli

Dispatch prompts asynchronously to the local Gemini CLI, bypassing Windows cmd.exe quoting issues and automatically injecting the API key and system proxy.

Instructions

Dispatch a task asynchronously to local official Gemini CLI (directly invokes bundle/gemini.js without shell when available to avoid Windows cmd.exe quoting issues, auto-injects GEMINI_API_KEY and system proxy).

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

Input Schema

NameRequiredDescriptionDefault
modelNoOptional Gemini model override (e.g. gemini-3.5-flash-lite)
promptYesPrompt for Gemini CLI
workspaceDirNo/root

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose meaningful behavior: async execution, direct invocation of bundle/gemini.js bypassing the shell to avoid Windows cmd.exe quoting problems, and auto-injection of GEMINI_API_KEY and the system proxy. However, it omits what a dispatch returns (task ID?), how to poll for completion, and failure behavior — the details an agent most needs for an async tool.

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?

A single front-loaded sentence with the core action first and implementation caveats relegated to a parenthetical. It is dense but each clause carries information; the Windows cmd.exe rationale is arguably more detail than an agent needs to select the tool.

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?

There is no output schema, so the description should explain what comes back and how to follow up on an async dispatch, and it does not. Combined with the undocumented workspaceDir parameter, an agent can invoke it but cannot reliably complete the full async workflow from this definition alone.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 67%, below the high-coverage baseline, so the description should compensate — but it never mentions any of the three parameters. The semantics of the model override and the purpose of workspaceDir (schema gives only a default of /root) are left entirely to the schema, and workspaceDir has no description at all.

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?

States a specific verb and resource: 'Dispatch a task asynchronously to local official Gemini CLI'. The word 'local official' distinguishes it from the sibling dispatch_antigravity, but the description never explicitly contrasts the two, so the differentiation is only implicit.

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

Usage Guidelines2/5

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

'Asynchronously' signals fire-and-forget semantics, which hints at the usage pattern, but there is no explicit when-to-use, when-not-to-use, or alternative named. Nothing tells an agent when to pick this over dispatch_antigravity, nor that results must be retrieved later via a task-status sibling.

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