Skip to main content
Glama

get_thread_lineage

Read-onlyIdempotent

Read a thread's run lineage, including parent run ID and set-at timestamp, or null if none has been set. Use it to trace how runs inherit context across a Maidan thread.

Instructions

Read a thread's run lineage (parent_run_id + set_at), or null if none has been set.

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": {
      "thread_id": "<thread_id>"
    },
    "name": "get_thread_lineage"
  }
}

Input Schema

NameRequiredDescriptionDefault
thread_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv479.0.0

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, and closed-world, so the safety profile is covered. The description adds genuine value beyond them by disclosing the return shape (parent_run_id + set_at) and the null case when no lineage exists. It does not mention permissions or naming/identifier constraints, which keeps it short of 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One front-loaded sentence with the resource first, the payload second, and the edge case (null) last. Nothing is redundant and nothing material is padded in.

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 one-parameter read tool with no output schema, the description supplies the essentials: what is returned and what happens when nothing is set. Only minor gaps remain, such as whether thread_id must be an existing thread or how errors are surfaced.

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?

There is a single parameter with 0% schema description coverage; the description only implies it operates on a thread and adds no format, source, or validity detail. The schema's own format:uuid carries the type information, so the description neither compensates for nor worsens the coverage gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ("Read") and resource ("a thread's run lineage"), and specifies the exact payload fields (parent_run_id + set_at). This clearly separates it from set_thread_lineage and clear_thread_lineage without needing to open any schema.

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?

The read semantics and the null-when-unset behavior imply when to use it, but the description never explicitly names the alternatives (set_thread_lineage / clear_thread_lineage) or states when not to use it. Usage is inferable rather than stated.

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