Skip to main content
Glama

Get Thread Context

get_thread_context
Read-onlyIdempotent

Liefert Threadkontext aus dem privaten Index, älteste Nachrichten zuerst (Zeit, dann Dokument-ID). doc_id identifiziert den Thread, nicht die erste Seite; ein expliziter thread_key hat Vorrang. Normale Seiten: pagination.next_offset bis null folgen. Bei read_view dessen next_arguments folgen, data.chunk unverändert in Offsetfolge verketten und erst das vollständige JSON parsen; danach next_source_arguments für die nächste Quellseite.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_thread_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoStandard 50; wirksam auf 1..200 begrenzt.
doc_idNoDokument zur Identifikation des Threads.
offsetNo
sectionNoauto
thread_keyNo
chunk_limitNo
snapshot_idNo
chunk_offsetNo
expected_revisionNo

Output Schema

NameRequiredDescriptionDefault
dataNo
metaNo
toolYes
traceNo
statusYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / allOf
      Removed value: -[
      -  {
      -    "if": {
      -      "anyOf": [
      -        {
      -          "required": [
      -            "chunk_offset"
      -          ]
      -        },
      -        {
      -          "required": [
      -            "chunk_limit"
      -          ]
      -        }
      -      ]
      -    },
      -    "then": {
      -      "properties": {
      -        "section": {
      -          "const": "document"
      -        }
      -      },
      -      "required": [
      -        "section"
      -      ]
      -    }
      -  },
      -  {
      -    "if": {
      -      "required": [
      -        "snapshot_id"
      -      ]
      -    },
      -    "then": {
      -      "required": [
      -        "expected_revision"
      -      ]
      -    }
      -  },
      -  {
      -    "if": {
      -      "required": [
      -        "expected_revision"
      -      ]
      -    },
      -    "then": {
      -      "required": [
      -        "snapshot_id"
      -      ]
      -    }
      -  },
      -  {
      -    "if": {
      -      "properties": {
      -        "chunk_offset": {
      -          "minimum": 1
      -        }
      -      },
      -      "required": [
      -        "chunk_offset"
      -      ]
      -    },
      -    "then": {
      -      "required": [
      -        "snapshot_id",
      -        "expected_revision"
      -      ]
      -    }
      -  }
      -]
    • addedInput schema / description
      Added value: +"snapshot_id und expected_revision gemeinsam übergeben; Fortsetzungen verwenden die next_arguments der vorherigen Antwort unverändert. Chunk-Parameter nur für die dokumentierte section; positive Offsets erfordern den zugehörigen Snapshot und seine Revision. Bedingte Parameterregeln werden vor Ausführung serverseitig geprüft; VALIDATION_ERROR nennt den betroffenen Parameter."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "data": {},
      +    "meta": {
      +      "type": "object"
      +    },
      +    "status": {
      +      "enum": [
      +        "ok",
      +        "error"
      +      ],
      +      "type": "string"
      +    },
      +    "tool": {
      +      "type": "string"
      +    },
      +    "trace": {
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "tool",
      +    "status"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description adds genuinely new behavior: deterministic ordering, the rule that doc_id identifies the thread rather than the first page, and two distinct pagination protocols including the requirement to concatenate data.chunk unchanged and only parse the complete JSON. It does not discuss rate limits or the private-index access requirements, which keeps it off a 5.

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?

Front-loaded with purpose and ordering, then branches into the normal-page path and the read_view path. Dense but every sentence carries protocol information; only the chunk-concatenation sentence is slightly hard to parse on first read.

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 9-parameter, snapshot-conditional tool with an output schema, the description covers the tricky parts an agent would otherwise get wrong: pagination chaining, chunk reassembly, and thread identity. Gaps remain around the section enum and the mutual requirement of snapshot_id/expected_revision, but the schema supplies the latter.

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 coverage is only 22%, so the description must carry more weight; it does explain doc_id's semantics (thread identity, not page one), thread_key precedence, and offset/chunk continuation behavior. It says nothing about limit, section (the only enum), chunk_limit, or when snapshot_id/expected_revision are mandatory beyond what the schema text already states, leaving several parameters unexplained in both places.

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 ('Liefert Threadkontext aus dem privaten Index') plus an explicit ordering guarantee (oldest first, by time then document ID). The 'privater Index' scoping hints at a distinction from forum-thread siblings, but no sibling is named, so differentiation is implied rather than stated.

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?

Gives real operational guidance for continuation flows (follow pagination.next_offset until null; for read_view follow next_arguments then next_source_arguments) and a precedence rule (explicit thread_key wins over doc_id). What is missing is when to choose this tool at all versus get_forum_thread or the other context tools, and any prerequisite/permission guidance.

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.