Skip to main content
Glama

fetch_composed_attestation

Fetch compressed attestation por leaf hash via Photon Indexer. Retorna leaf data decoded (subject, jurisdiction, status, authority, shdw_url, etc.) e flag verifying se payload Shadow Drive bate com payload_hash on-leaf. Usar pra audit verification (regulador) ou status check (issuer).

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": {
      "leafHashHex": "<leafHashHex>"
    },
    "name": "fetch_composed_attestation"
  }
}

Input Schema

NameRequiredDescriptionDefault
leafHashHexYes32-byte leaf hash hex (retornado por submit_composed_attestation).
verifyPayloadNoSe true, faz GET no shdw_url do leaf, calcula SHA-256, compara com payload_hash gravado on-chain. Default false (skip pra latência).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does reasonably well: it discloses the external Photon Indexer dependency, that verification performs a GET against the leaf's shdw_url plus a SHA-256 comparison against the on-chain payload_hash, and that this is skipped by default for latency reasons. It omits auth/permission requirements and failure behavior when the shadow payload does not match.

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?

Three sentences, front-loaded with the core action, followed by return shape and usage contexts — no filler. The mixed Portuguese/English phrasing is slightly awkward but does not obscure meaning.

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 read-only fetch with no annotations and no output schema, the description compensates by enumerating the decoded fields returned and explaining the optional verification path, which is exactly what an agent would otherwise have to guess. Auth requirements and error cases remain 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 description coverage is 100%, so both parameters are already fully documented, making 3 the baseline. The description adds only the provenance hint that the leaf hash comes from submit_composed_attestation and restates the verify-on-Shadow-Drive semantics rather than adding new meaning.

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 — fetching a compressed composed attestation by leaf hash through the Photon Indexer — which an agent can act on directly. It also enumerates the decoded fields returned, reinforcing what the resource is. It does not explicitly contrast itself with the sibling fetch_compliance_attestation, so the sibling differentiation is left implicit.

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?

"Usar pra audit verification (regulador) ou status check (issuer)" gives two concrete caller contexts, which is genuine when-to-use guidance. There are no exclusions or named alternatives (e.g. when to prefer fetch_compliance_attestation instead), which keeps it below a 5.

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