Skip to main content
Glama

get_session_calls

Retrieve all model calls for a given session ID, sorted oldest first, to debug AI interactions and analyze session usage.

Instructions

Get all model calls for a specific session, sorted by timestamp (oldest first).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sessionIdYesThe session ID to retrieve calls for

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/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 the sort order (oldest first), which is real behavior beyond the schema, but says nothing about result size, pagination, or whether the list can be large.

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?

A single front-loaded sentence that conveys the operation, the scope, and the ordering with zero wasted words.

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?

For a simple one-parameter read tool with no output schema, this is nearly sufficient, but the absence of any note on result volume or pagination leaves a gap for a potentially large per-session call list.

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 coverage is 100% and the single sessionId parameter is fully documented in the schema, so the description adds no parameter-level meaning beyond it. Baseline 3 is appropriate when the schema already does the work.

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?

States a specific verb and resource ('Get all model calls') scoped to a session, plus the ordering guarantee. It is largely distinguishable from siblings like search_model_calls, but the description never explicitly differentiates itself from them or from log_model_call.

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

Usage Guidelines2/5

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

No guidance on when to use this versus search_model_calls, list_sessions, or log_model_call, and no prerequisites or exclusions stated. The agent must infer usage from the name alone.

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