Skip to main content
Glama

sessions_list_messages

List message keys for a specific session and agent to access stored conversation messages, with optional limit and continuation token for pagination.

Instructions

List message keys under sessions/<session_id>/agents/<agent_id>/messages/.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
agent_idNoagent_default
session_idYes
continuation_tokenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.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 behavioral burden. It does disclose that the result is message keys rather than full message content, and scopes the operation under a session/agent path. However, it omits pagination, ordering, and the role of continuation_token.

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 compact sentence with no filler. It front-loads the operation and the exact resource location, making it easy for an agent to parse quickly.

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 tool with no output schema and no annotations, the description is too sparse. It does not explain how to page through results, what limit controls, or when to use this over sibling getter tools, so the agent only understands the basic first call.

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. It explains session_id and agent_id through the path template, but says nothing about limit or continuation_token, leaving significant pagination semantics to be guessed from parameter names.

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 uses a specific verb ('List') and resource ('message keys') and gives an explicit path template. This clearly distinguishes it from siblings like sessions_get_message_json or sessions_get_raw, even without naming them.

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?

There is no guidance on when to use this tool versus sibling tools, nor any mention of use cases, exclusions, or preferred alternatives. The path and verb imply usage indirectly, but nothing is stated.

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