Skip to main content
Glama

Show a memory's lineage

get_lineage
Read-onlyIdempotent

What a memory was built from and what was built on it: the nodes reachable from the root and the edges among them (each edge reads: derivedId was built from inputId), with how many the limit left out. Walks every side by default. Mirrors Trace's Lineage tab; needs project Read.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoThe most nodes to return, 1 to 400; 50 when omitted.
revealNoSides to open when revealAll is false, each "<id>:inputs" or "<id>:outputs".
rootIdYesThe root's id: a memory or a source.
projectNoThe project's slug, exactly as get_viewer or list_projects returned it. May be omitted when the organization has one live project.
revealAllNoWalk every side up to the limit. True when omitted; false walks only `reveal`, or the root's inputs when that is empty.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / project / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedInput schema / properties / reveal / items / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedInput schema / properties / reveal / type
      Previous value: -"array"New value: +[
      +  "array",
      +  "null"
      +]
  2. First observed

TDQS

A3.8/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, closed-world), so the bar is lower. The description adds real behavioral context on top: the required permission ('project Read'), the default walk-every-side behavior, and notably the truncation disclosure ('with how many the limit left out'), which tells the agent results may be partial.

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 what is returned before the permission note. The edge-reading parenthetical and truncation clause each add distinct value. Slightly dense, but nothing reads as filler.

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?

With no output schema, the description carries the return-value burden and does so: it describes nodes, edges, edge direction, and truncation count, plus the auth requirement. Missing only ordering/pagination detail for the returned nodes, which would fully close the loop.

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 100%, so baseline is 3, but the description earns above it: it explains the edge reading convention ('derivedId was built from inputId'), which is response semantics for the graph, and clarifies the default traversal ('Walks every side by default') that governs revealAll/reveal behavior without restating 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+resource: the memory's lineage, split into upstream ('what a memory was built from') and downstream ('what was built on it'), plus the exact edge semantics ('derivedId was built from inputId') and the limit-truncation count. That is far more than a restatement of the name. It does not name a sibling (e.g. get_trace_node, find_trace_roots) to contrast against, 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?

The use case is implied by 'Mirrors Trace's Lineage tab', and the prerequisite 'needs project Read' is given, along with the default traversal behavior. But there is no explicit when-to-use guidance versus the trace-node/root-finding siblings, so the agent must infer the routing decision itself.

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