Skip to main content
Glama

Get chat thread

get_chat_thread
Read-onlyIdempotent

Open one of the user's chat threads with all its messages. includeFileUrl=true also returns a time-limited link to the file attached to the thread, when there is one.

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": {
      "threadId": "<threadId>"
    },
    "name": "get_chat_thread"
  }
}

Input Schema

NameRequiredDescriptionDefault
threadIdYesThread id
includeFileUrlNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so the safety profile is covered. The description adds context annotations cannot: the full message set is returned, the file URL is time-limited, and it only appears when a file is attached. It stops short of describing ordering, pagination, or what happens for an invalid threadId.

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?

Two short sentences, zero filler. The core behavior leads and the optional flag's effect follows immediately.

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

Completeness5/5

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

With no output schema, the description still tells the agent what comes back (thread plus all messages, optional file link) and when the optional field matters. Nothing essential to a correct call is missing for a two-parameter read tool.

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 only 50% and threadId is documented merely as 'Thread id', so the description carries real weight. It explains includeFileUrl's behavior precisely (time-limited link, only when a file exists), which is meaningfully more than the bare boolean in 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?

States a specific verb and resource ('Open one of the user's chat threads') and adds the key payload detail ('with all its messages'), which distinguishes it in spirit from list_chat_threads. It never names that sibling, so the single-versus-list distinction is left implicit rather than explicit.

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 by 'Open one of the user's chat threads' — an agent can infer this is the tool for reading a specific thread's contents after identifying it via list_chat_threads. There is no explicit when-to-use/when-not guidance or named alternative, which is the minimum viable bar.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources