Skip to main content
Glama

session_record

Record tool calls into the current session to create a trace for debugging. Invoke after each MCP tool call to keep an accurate log.

Instructions

Record a tool call into the current session. Call this after every MCP tool call you want to track.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
argsNo
resultYes
tool_nameYes
session_idNoOmit to use current session
duration_msNo
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It does not mention side effects, session requirements, whether the record is appended or overwritten, or what happens if no session exists. The description only restates the basic action.

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?

The description is two short sentences, front-loaded with the core action and usage guidance. Every word earns its place with no fluff.

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?

The tool has 5 parameters, 2 required, no output schema, and no annotations. The description provides only the basic purpose and usage, omitting essential details like parameter purposes, return behavior, and edge cases. This makes it incomplete for reliable invocation.

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 20% (only session_id has a description), and the tool description does not explain any parameters. It does not describe the meaning of args, duration_ms, or how tool_name and result relate to the recorded call, so it adds little beyond the minimal schema.

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 clearly states the tool's purpose: 'Record a tool call into the current session.' It uses a specific verb (record) and resource (tool call), and distinguishes it from sibling session tools like session_search and session_replay.

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?

The description provides explicit usage guidance: 'Call this after every MCP tool call you want to track.' This gives clear context for when to use it, though it does not mention alternatives or when not to use it.

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/DdUdle/ctxdebug'

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