Skip to main content
Glama

get_log

Retrieves the tail of Gemini's raw transcript for a specific task round and iteration so you can diagnose agent errors.

Instructions

Tail of Gemini's raw transcript for one iteration. Use only to diagnose agent_error.

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": {
      "task_id": "<task_id>",
      "round": "<round>",
      "iteration": "<iteration>"
    },
    "name": "get_log"
  }
}

Input Schema

NameRequiredDescriptionDefault
roundYes
task_idYes
iterationYes
tail_linesNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/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 behavioral burden. It usefully discloses that output is a truncated tail of raw (unstructured) transcript, but says nothing about output volume, whether logs are retained or expire, permissions, or what 'agent_error' state even looks like.

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, with the purpose stated first and the usage restriction second. Nothing could be removed without losing information.

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

Completeness3/5

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

An output schema exists, so return format need not be described. But for a four-parameter tool with zero schema coverage and no annotations, the description leaves the agent guessing about tail_lines and the identity of round/iteration.

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

Parameters2/5

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

Schema description coverage is 0% across four parameters, and the description only hints that round/iteration select 'one iteration.' task_id and especially tail_lines (default 80) get no explanation, so the schema gap is not compensated.

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?

Names a specific resource and scope: the 'tail of Gemini's raw transcript for one iteration.' That distinguishes it from get_diff (diffs) and from task-level tools, though the retrieval verb itself is only implied by 'Tail of'.

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?

'Use only to diagnose agent_error' is an explicit when-to-use restriction, which is stronger than most diagnostic tools offer. It does not name an alternative for other debugging needs, so it stops short of full routing guidance.

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