Skip to main content
Glama

Trace an Item's Origin

get_item_provenance
Read-onlyIdempotent

Returns the adoption chain of an item the user adopted, newest first (adopted from @bob, who adopted it from @carol): handles, content hashes and adoption times only, never content. If the user never adopted the item, the chain is empty. itemId is the source snapshot item id pinned on an adopted recommendation. [Bearer scope: setup_share:status:read]

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": {
      "itemId": "<itemId>"
    },
    "name": "get_item_provenance"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemIdYesThe source SetupSnapshotItem id to trace provenance for.
maxHopsNoMax chain depth to walk. Default 10, max 50.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive), and the description adds real behavioral context on top: ordering is newest-first, the payload is restricted to handles/hashes/timestamps and never content, an empty chain is the correct result for a non-adopted item, and the call requires the setup_share:status:read bearer scope. That is exactly the kind of detail annotations cannot express.

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?

Dense and front-loaded — the return shape and ordering come first, then edge case, then parameter provenance, then the auth scope tag. Nothing is wasted, though the 'handles, content hashes and adoption times only, never content' clause states the exclusion twice.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 names the fields, the sort order, and the empty-chain case. Combined with the disclosed auth scope and a fully documented two-parameter schema, an agent has everything needed to call this correctly.

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 the schema already documents both parameters and the baseline would be 3. The description adds genuine meaning for itemId by explaining it is the source snapshot item id pinned on an adopted recommendation, clarifying what value to supply; maxHops is left entirely to the schema, which already gives default and max.

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: 'Returns the adoption chain of an item the user adopted, newest first', and pins down what the payload contains (handles, content hashes, adoption times, never content). It is clearly distinguishable in substance from a status or attestation lookup, but it never names a sibling tool, so the routing is implicit rather than explicit.

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?

Usage is implied rather than stated: the tool applies to items the user adopted, and 'If the user never adopted the item, the chain is empty' documents the negative case. There is no explicit 'use this instead of X when Y' guidance against the many sibling get_* tools, which leaves the agent to infer the selection rule.

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