Skip to main content
Glama

ts_session

Read-onlyIdempotent

Retrieve detailed state, model, persona, context usage, and any pending approval verdict for a specific agent session using its workspace ID or unique prefix.

Instructions

Details of one session: state, node, model, persona, context use and - if it waits for an approval - the pending tool call with the judge verdict. ws_id: full id or unique prefix (>= 6 chars).

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": {
      "ws_id": "<ws_id>"
    },
    "name": "ts_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
ws_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint true, so safety is covered; the description adds real value by disclosing what the payload contains, including the conditional branch that an approval-waiting session exposes the pending tool call and judge verdict. That conditional behavior is exactly the kind of thing an agent needs and cannot get from annotations or the one-field schema.

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?

Two sentences, front-loaded with the returned field set followed by the parameter rule; nothing is padded. Minor deduction because the field list is a dense comma run with some internal jargon ('context use', 'node') that is not glossed.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, and the description compensates by enumerating the returned fields, which is appropriate for a low-complexity single-parameter read tool. What remains unexplained is the vocabulary of the values themselves (what states or node types exist), so an agent still cannot interpret results in advance.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the full burden, and it does: ws_id accepts either a full id or a unique prefix of at least 6 characters. That constraint is operationally important (it determines whether a call is valid) and is available nowhere else in the definition.

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 concrete verb+resource: it returns the details of a single session, and it enumerates the fields returned (state, node, model, persona, context use, pending tool call + judge verdict). This clearly separates it from the sibling list tool ts_sessions, though the description never names that alternative explicitly.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: 'Details of ONE session' plus a required ws_id signals the single-record lookup case, and the mention of pending approvals hints at a polling/inspection use case. There is no explicit statement of when to prefer this over ts_sessions or ts_children, and no exclusions.

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