Skip to main content
Glama

Log episode

log_episode

Record an episode — what the agent did and how it turned out. This is the raw material reflection learns from.

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": {
      "agent_id": "<agent_id>",
      "summary": "<summary>"
    },
    "name": "log_episode"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionsNoTools called / args / results (audit + learning).
goal_idNo
outcomeNo
summaryYesWhat happened, in the agent's words.
agent_idYes
ended_atNo
started_atNo
category_idNo
category_slugNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false, destructiveHint=false and openWorldHint=false. Beyond that, the description adds no behavioral detail – nothing about whether duplicate episodes are deduplicated, retention, whether logging is required before reflection, or what happens on failure.

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?

Two short sentences, front-loaded with the core action, with no filler. The second sentence is motivational rather than operational, but it does support understanding the purpose.

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 9-parameter write tool with 22% schema coverage and no output schema, the description is thin: most fields, the identifier relationships (goal_id, category_id vs category_slug), and any confirmation of what is returned are unexplained.

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 only 22% across 9 parameters. The description implicitly maps to three of them (actions as 'what the agent did', outcome as 'how it turned out', summary), but goal_id, agent_id, started_at/ended_at, category_id and category_slug get no meaning from either source.

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 gives a specific verb and resource ('Record an episode') and explains the payload conceptually as 'what the agent did and how it turned out.' This distinguishes it from non-logging siblings, but it never contrasts it with near-neighbors like log_session or log_body_metric.

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?

Implied usage is present via 'raw material reflection learns from,' which suggests logging after completing work so reflection can consume it. There is no explicit when-to-use, when-not-to-use, or named alternative, so the agent must infer the trigger condition.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources