Skip to main content
Glama
cainmaila

gemini-cli-mcp

by cainmaila

Execute Delegated Task

executeTask

Offload complex tasks to the local Gemini CLI and receive a direct final answer plus execution metadata.

Instructions

AI-friendly task interface. Accepts a task description and returns a direct, meaningful final answer plus execution metadata.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdNoOptional working directory for the Gemini CLI process
taskYesTask to delegate to the local Gemini CLI
modelNoOptional Gemini model name
contextNoOptional task context for Gemini
timeoutMsNoOptional timeout in milliseconds
approvalModeNoOptional Gemini CLI approval mode. If omitted, file-mutating tasks default to auto_edit.
expectedOutputNoOptional instructions describing the desired final answer format

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
argsYes
answerYes
signalYes
stderrYes
stdoutYes
abortedYes
commandYes
exitCodeYes
timedOutYes
elapsedMsYes
errorMessageNo
workingDirectoryNo
effectiveApprovalModeNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.1

TDQS

C2.8/5.0
Behavior2/5

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

With no annotations, the description carries the full burden of disclosing behavior, but it only promises a final answer and metadata. It does not mention that this invokes the local Gemini CLI, that approvalMode governs file-mutating behavior with a default of auto_edit, or anything about side effects and execution constraints.

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

Conciseness3/5

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

The description is short and mostly front-loaded, but the opening 'AI-friendly task interface' sentence is filler that does not earn its place. The functional sentence is concise, so this is adequate but not exemplary.

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?

For a tool with seven parameters, a rich output schema, and sibling tools, the description is too thin: it does not clarify when to use executeTask vs executePrompt/inspectGeminiCli, nor does it mention the underlying Gemini CLI execution model. The schema fills parameter details, but selection and invocation context remain incomplete.

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%, so parameters are already documented in the schema. The description itself adds no parameter-level semantics beyond calling the input a 'task description,' which is sufficient only at baseline.

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 title and description establish a generic task-execution tool: it accepts a task description and returns a final answer plus execution metadata. This is clear enough to distinguish 'task execution' from mere inspection, but it does not explicitly distinguish executeTask from sibling executePrompt, so it falls one step short of 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 Guidelines2/5

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

No when-to-use guidance is present. The description never names alternatives like executePrompt or executeImageTask, nor does it state conditions that should route an agent to this tool rather than a sibling. This leaves tool selection to inference.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cainmaila/gemini-cli-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server