Skip to main content
Glama

get_chat

Read-onlyIdempotent

Inspect a local Gemini conversation's title, status, model, and recent turns to identify the chat and retrieve its ID for continuing in gemini_chat.

Instructions

Inspect the title, status, model, and recent turns in a local Gemini conversation. Use the previews to identify a chat and pass its ID to gemini_chat to continue.

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": {
      "conversationId": "<conversationId>"
    },
    "name": "get_chat"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoNumber of recent turns, default 3. Use 0 for metadata only.
beforeTurnNoReturn turns before this number. Use nextBeforeTurn to page back.
conversationIdYesID returned by create_chat, list_chats, or gemini_chat.

Output Schema

NameRequiredDescriptionDefault
modelYes
titleYes
turnsYes
statusYes
createdAtYes
turnCountYes
updatedAtYes
forkedAtTurnNo
conversationIdYes
nextBeforeTurnYes
lastUserPreviewYes
parentConversationIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and a closed-world local scope, so the safety profile is covered. The description adds value by confirming the tool is non-mutating inspection and by naming the payload (metadata plus recent-turn previews) and the handoff path. It omits any mention of paginating through long histories, which the schema supports via beforeTurn.

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

Conciseness5/5

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

Two sentences, zero filler. The capability statement comes first and the routing guidance second, which is the correct front-loading for an agent deciding whether to call it.

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?

With an output schema present and full parameter documentation, the description only needs to convey purpose and role in the workflow, which it does cleanly. The one gap is not signaling that large conversations require paging via beforeTurn, though the schema covers that detail.

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%, including limit semantics (0 for metadata only), beforeTurn paging with nextBeforeTurn, and accepted ID sources. The description's phrasing "recent turns" mildly reinforces the limit parameter but adds no syntax or defaults beyond the schema, so the baseline of 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?

The description uses a specific verb ("Inspect") against a specific resource (a local Gemini conversation) and enumerates what is surfaced: title, status, model, and recent turns. It also explicitly contrasts with gemini_chat (continue) and implicitly with list_chats by framing this as inspection of one known chat.

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

Usage Guidelines4/5

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

It gives a clear workflow: use the previews to identify a chat, then pass its ID to gemini_chat to continue. That is a concrete when-to-use and next-step, but it does not state when to prefer this over list_chats for discovery or update_chat/forget_chat for modification.

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