Skip to main content
Glama

gemini_chat

Generate text and analyze files (images, audio, video, PDF, Office, CSV, text) with Gemini models, plus optional Google Search, URL context, code execution, and JSON schema.

Instructions

Generate text with Gemini or analyze files (images, audio, video, PDF, Office, CSV, text).

model: default in list_capabilities; e.g. gemini-4-carbon (smartest), gemini-4-neon, gemini-4-argon, gemini-4-hydrogen, gemini-3.8-flash, gemini-3.5-flash-lite (cheapest). files: absolute paths of files to analyze. google_search / url_context / code_execution / google_maps: built-in tools. json_schema: return structured JSON matching this schema. previous_interaction_id: continue a conversation from an earlier interaction_id. thinking_level: minimal, low, medium, high or xhigh (depth = cost/latency). max_output_tokens: output cap. tools: raw tool definitions appended to the built-ins.

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

Input Schema

NameRequiredDescriptionDefault
filesNo
modelNo
toolsNo
promptYes
google_mapsNo
json_schemaNo
url_contextNo
google_searchNo
code_executionNo
thinking_levelNo
max_output_tokensNo
system_instructionNo
previous_interaction_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv6.0.0

TDQS

A3.6/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. It does add real behavioral context: cost/latency tradeoffs for thinking_level and the 'cheapest' model tier, the fact that json_schema forces structured JSON output, and that the four built-in tool flags are toggleable capabilities. It still omits file-size/count limits, what happens to uploaded files, whether interactions are persisted server-side, and failure behavior for unsupported formats.

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 core purpose is front-loaded in one sentence, then parameters are listed in a compact one-line-per-parameter block that is easy to scan. Slightly dense and telegraphic, but essentially no wasted wording.

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?

For a 13-parameter, multimodal generation tool with no output schema and no annotations, the definition covers nearly every knob and explains the interaction-continuation model. It falls short on operational constraints (file limits, model/permission errors, whether prior interactions expire) that an agent would want before a long multi-turn call.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must compensate and largely does: it explains model, files, the four built-in tool booleans, json_schema, previous_interaction_id, thinking_level (including the actual enum values minimal/low/medium/high/xhigh, which the schema lacks), max_output_tokens, and tools. Only prompt and system_instruction go undocumented, and 'tools: raw tool definitions appended to the built-ins' stays vague about the expected object shape.

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 description opens with a specific verb+resource: 'Generate text with Gemini or analyze files', enumerating supported media types (images, audio, video, PDF, Office, CSV, text). This distinguishes it by modality from siblings like generate_image, generate_video, and text_to_speech, though it never names a sibling explicitly nor clarifies the boundary with deep_research or agent_run.

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?

Usage is implied rather than stated: it hints that model defaults come from list_capabilities and that previous_interaction_id is used to continue a conversation, which is genuinely useful routing info. But there is no explicit when-to-use/when-not guidance, no mention of when to prefer this over agent_run or deep_research_start, and no prerequisites or limits given.

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