Skip to main content
Glama

get_agent_lineage

Read-onlyIdempotent

Retrieve orchestrator-to-sub-agent pairs that actually invoked each other, with invocation counts, to distinguish real invocation lineage from allowed permissions.

Instructions

Orchestrator→sub-agent pairs that actually invoked each other (via invoke_agent), with invocation counts — complements allowed_invoke_agents (which is "may invoke")

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_agent_lineage"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world scope, so safety is covered. The description adds real behavioral content beyond that: the result set is filtered to observed invocations rather than declared configuration, and each pair carries an invocation count. It does not disclose scope, aggregation window, pagination, or whether the list is org-wide.

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?

A single sentence that front-loads the resource being returned and appends the sibling differentiation as a trailing clause. Every element earns its place; nothing is repeated from the title or annotations.

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 zero parameters and no output schema, the description carries the burden of describing the payload, and it does so at a high level: pairs plus counts, restricted to real invocations. It leaves the exact response shape, scope, and ordering unspecified, which is a modest gap for a no-argument 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?

The tool takes zero parameters, so there is no parameter semantics to explain and the baseline of 4 applies. The description correctly implies a global, unfiltered listing rather than inviting parameters that do not exist.

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?

The description names the exact resource: orchestrator→sub-agent pairs, filtered to those that actually invoked one another via `invoke_agent`, plus invocation counts. It also explicitly distinguishes itself from `allowed_invoke_agents` (potential vs. actual), so an agent can separate the two without reading 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives clear selection context by contrasting its own 'actually invoked' semantics with `allowed_invoke_agents`' 'may invoke' semantics, which is effectively a when-to-use-this-not-that cue. It stops short of a fully explicit instruction (e.g. 'use X when you want configured permissions'), but the intent is unambiguous.

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