Skip to main content
Glama

list_consumer_sessions

Read-onlyIdempotent

Retrieve a paginated list of a specific consumer's sessions across agents, ordered most recent first, to inspect individual session activity beyond aggregated counters.

Instructions

Paginated list of a specific consumer's sessions (cross-agent, most recent first) — complements get_consumer_profile, which returns only aggregated counters

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": {
      "consumer_key": "<consumer_key>"
    },
    "name": "list_consumer_sessions"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum records, up to 100
offsetNoPagination offset
consumer_keyYesConsumer identity, matching consumer_key in sessions

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv2.2.4
    • changedInput schema / properties / consumer_key / description
      Previous value: -"Identificador do consumer (mesmo de agent_sessions.consumer_key)"New value: +"Consumer identity, matching consumer_key in sessions"
    • changedInput schema / properties / limit / description
      Previous value: -"Máximo de registros (até 100)"New value: +"Maximum records, up to 100"
    • changedInput schema / properties / offset / description
      Previous value: -"Offset de paginação"New value: +"Pagination offset"
  2. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint, idempotentHint, destructiveHint=false, openWorldHint=false), so the description's added value is the pagination contract, the newest-first ordering, and the cross-agent scope of results. It does not discuss result size limits or what happens at the end of the pagination window, but the added behavioral context is solid.

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?

One front-loaded sentence with the core purpose first and the sibling contrast trailing; nothing is wasted. The parenthetical and em-dash clause make it slightly dense but not bloated.

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?

There is no output schema, so the description should carry more of the return-value burden; it conveys ordering and pagination but not what a session record contains or whether a total count is available. For a simple read-only list tool this is adequate, but not complete.

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 description coverage is 100%, with limit, offset, and consumer_key all documented in the schema, so the baseline is 3. The description only reinforces 'paginated' and the ordering, adding no syntax or matching details beyond the schema.

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 ('Paginated list of a specific consumer's sessions') plus scope qualifiers ('cross-agent, most recent first'), and it explicitly contrasts with get_consumer_profile. It stops short of a full sibling differentiation, but the core operation is unambiguous.

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?

By stating that it complements get_consumer_profile 'which returns only aggregated counters,' the description implicitly tells the agent to use this tool when per-session detail is needed rather than totals. No explicit exclusions or when-not guidance are given, so it falls short of a 5.

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

Deploy Server

Other Tools