Skip to main content
Glama
jeanchristophe13v

gemini-cli-mcp-async

gemini_cli_execute

Execute Gemini CLI synchronously with configurable parameters for interactive or non-interactive prompts, enabling direct automation of AI tasks from Claude Code.

Instructions

Execute Gemini CLI synchronously with configurable parameters. Supports both interactive and non-interactive prompts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
yoloNoEnable auto confirmation (--yolo)
debugNoEnable debug logging (--debug)
queryNoQuery or command arguments passed to Gemini CLI (positional arguments).
sandboxNoEnable sandbox mode (--sandbox)
timeoutNoTimeout in seconds for synchronous execution
extensionsNoGemini CLI extensions (--extensions)
working_dirNoWorking directory for the command (default: current directory)
allowed_toolsNoWhitelisted tool names (--allowed-tools)
approval_modeNoApproval mode (--approval-mode)
output_formatNoOutput format (--output-format)
screen_readerNoEnable screen reader mode (--screen-reader)
additional_argsNoAdditional CLI arguments appended verbatim
experimental_acpNoEnable experimental ACP (--experimental-acp)
include_directoriesNoAdditional directories (--include-directories)
allowed_mcp_server_namesNoWhitelisted MCP server names (--allowed-mcp-server-names)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are provided, so the description must carry the full burden. It discloses that execution is synchronous and supports interactive/non-interactive prompts, but omits side effects, return values, timeout behavior, and safety implications of running CLI commands. For a command-execution tool, this is a significant gap.

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 description is a single concise sentence with no meaningful bloat, and the key synchronous behavior is front-loaded. It loses a point for the slightly generic 'with configurable parameters' phrase, which adds little information, but overall it is efficiently written.

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

Completeness2/5

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

Given 15 optional parameters, no annotations, and no output schema, a one-sentence description is insufficient. It omits return value semantics, output format behavior, timeout handling, and any warnings about potential system effects, leaving an agent without enough context to invoke the tool confidently.

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%, with all 15 parameters documented in the input schema. The description only says 'configurable parameters' and adds no parameter-specific meaning beyond what the schema already provides, so the 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 action ('Execute Gemini CLI synchronously') and clearly distinguishes itself from the async sibling by emphasizing synchronous mode. Also notes support for both interactive and non-interactive prompts, giving a clear functional identity.

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?

The word 'synchronously' implies use when blocking execution is desired, and the sibling names hint at an async alternative. However, there is no explicit guidance on when to choose this tool over gemini_cli_execute_async or how gemini_cli_check_result fits in, leaving the selection largely to inference.

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