Skip to main content
Glama

session tools (Token Meter)

session_tools
Read-onlyIdempotent

Break down per-session MCP tool usage: call counts, response sizes, and average latency. Identify and debug slow or expensive sessions.

Instructions

Per-session MCP / built-in tool breakdown: call counts, response sizes, average latency. Debug a slow/expensive session.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYes
limitNo
Behavior4/5

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

Annotations already indicate the tool is read-only, non-destructive, and idempotent. The description adds useful behavioral context by specifying the metrics returned (call counts, response sizes, average latency), going beyond what annotations provide.

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 a single sentence that conveys the core purpose and output, with no extraneous information. It is front-loaded and efficient.

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?

The description covers the purpose and output metrics but lacks parameter explanations and output format details. Given no output schema, an agent may need more context on the exact data structure. Adequate but with gaps.

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%, so the description must compensate. However, the description does not explain the 'session_id' or 'limit' parameters. It adds no meaning beyond what the schema provides (parameter names and types).

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 it provides a per-session breakdown of call counts, response sizes, and average latency, with a stated purpose of debugging slow/expensive sessions. This differentiates it from siblings like 'recent_sessions' and 'usage_summary'.

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 explicitly says to use it to 'debug a slow/expensive session,' providing clear context for use. While it doesn't explicitly mention when not to use or alternatives, the context is sufficient for an agent to decide.

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/whdrnr2583-cmd/token-meter'

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