Skip to main content
Glama

consult_gemini_with_files

Ask Gemini questions about your code files by including their paths in your query. Get responses based on the file contents.

Instructions

Send a query to the Gemini CLI with file context.

Args: query: Prompt text forwarded to the CLI. directory: Working directory used for resolving relative file paths. files: Relative or absolute file paths to include alongside the prompt. model: Optional model alias (flash, pro) or full Gemini model id. timeout_seconds: Optional per-call timeout override in seconds. mode: "inline" streams truncated snippets; "at_command" emits @path directives so Gemini CLI resolves files itself.

Returns: Gemini's response or an explanatory error string with any warnings.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
directoryYes
filesNo
modelNo
timeout_secondsNo
modeNoinline

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations provided, but description discloses key behaviors: inline mode streams truncated snippets, at_command mode emits @path directives, and returns explanatory error string with warnings. Adequate for a query 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?

Description is relatively concise with a clear intro and parameter list; no wasted sentences. Returns line adds value. Could be more front-loaded but still efficient.

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?

Given 6 parameters, no annotations, and no output schema, the description covers behavior, parameters, and return value sufficiently. Minor gap: no explicit mention of usage context beyond mode difference.

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

Parameters5/5

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

With 0% schema coverage, description compensates fully by explaining each parameter's purpose and constraints, e.g., directory resolves relative paths, mode describes two options, model lists aliases.

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?

Description specifies the verb 'send a query', the resource 'Gemini CLI', and the distinguishing feature 'with file context', clearly differentiating it from the sibling tool 'consult_gemini'.

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?

Description explains the two modes ('inline' vs 'at_command') and their behaviors, providing some guidance on how to use the tool but lacks explicit when-to-use versus siblings or when-not-to-use conditions.

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

Install Server

Other Tools

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/FojleRabbiRabib/gemini-bridge'

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