Skip to main content
Glama

orchestrator_inspect_task_lineage

Read-onlyIdempotent

Retrieve a task's current A2A state, full CAS transition audit trail, and artifact hash chain status scoped to one tenant, to verify lineage integrity and trace every state change.

Instructions

Execute a strict tenant-scoped query (WHERE tenant_id = ?) returning current A2A v1.0.1 task state, full optimistic CAS transition audit trail, and cryptographic verify_artifact_chain status.

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": {
      "tenant_id": "<tenant_id>",
      "task_id": "<task_id>"
    },
    "name": "orchestrator_inspect_task_lineage"
  }
}

Input Schema

NameRequiredDescriptionDefault
task_idYesTarget A2A `Task.id`.
tenant_idYesTenant namespace (`SPEC_CLASS_13`).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds real context beyond that: strict tenant scoping via `WHERE tenant_id = ?` and the fact that a cryptographic chain verification is performed as part of the read. It stops short of saying what happens on a missing task or how large the audit trail can be.

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?

A single sentence that leads with the scoping constraint and then lists the three return components, with no filler. The density of jargon (`v1.0.1`, CAS, verify_artifact_chain) is heavy but each term carries information.

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 burden of describing return values, and it does so by naming the three result components. Combined with annotations that fully cover the safety profile, an agent has enough to call it correctly; only edge-case behavior (not-found, audit trail volume) is unaddressed.

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 100%, so both parameters are already documented, and the schema identifies task_id as the A2A Task.id and tenant_id as the tenant namespace. The description's `WHERE tenant_id = ?` phrasing adds a hint that the tenant filter is an enforced isolation boundary, but that is a modest increment over 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?

The description uses a specific verb-and-resource framing ('Execute a strict tenant-scoped query') and enumerates exactly what comes back: current A2A v1.0.1 task state, the CAS transition audit trail, and verify_artifact_chain status. That distinguishes it from the mutating siblings (create/transition/append) by implication, though it never names an alternative read path.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, and no sibling is named as an alternative. An agent must infer from the name and the 'returning...' clause that this is the read-only inspection entry point, with no stated preconditions or exclusions.

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