Skip to main content
Glama

ts_outputs

Read-onlyIdempotent

Retrieves the last conversation items—user messages, assistant final text, and optional tool calls/results—from an agent session while excluding model reasoning.

Instructions

The last final items of a session's conversation: user messages, assistant final text, tool calls and tool results (shortened). Never the models' reasoning. last_n: items (default 5, max 20). include_tools: false hides tool calls and results. max_chars_per_item: default 1500, max 4000. 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_outputs"
  }
}

Input Schema

NameRequiredDescriptionDefault
ws_idYes
last_nNo
include_toolsNo
max_chars_per_itemNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description still adds real context beyond them: reasoning is never returned, tool calls/results are shortened, and hard caps exist (20 items, 4000 chars). It does not describe ordering, pagination, or what happens when the session is empty or last_n exceeds the max.

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?

It leads with what is returned and the key exclusion ('never the models' reasoning'), then packs parameter facts into dense fragments with no filler. The telegraphic style is efficient, though slightly harder to parse than full sentences.

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?

For a four-parameter read tool with annotations present and no output schema, the description covers return contents, exclusions, truncation, and every parameter's limits. Gaps are minor: no statement of ordering, error behavior, or whether the char cap applies per item vs per result.

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

Parameters4/5

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

Schema coverage is 0%, so the description carries the full burden, and it documents all four parameters: last_n (default 5, max 20), include_tools (false hides tool calls and results), max_chars_per_item (default 1500, max 4000), and ws_id (full id or unique prefix, >= 6 chars). The added max/prefix constraints go beyond the bare schema. It never spells out that ws_id is a workspace identifier, leaving one term implicit.

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 names the exact resource and content returned: 'the last final items of a session's conversation', enumerating user messages, assistant final text, tool calls and tool results. It also rules out reasoning traces, which sharpens the boundary. It does not explicitly contrast itself with siblings like ts_session, so it stops short of a 5.

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 only implied by the content description and the tuning knobs (last_n, include_tools); there is no explicit when-to-use or when-not-to-use statement, and no sibling is named as an alternative. An agent can infer this is the tool for reading recent conversation output, but must infer it.

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