Skip to main content
Glama

verify_corpus_manifest_onchain

Cross-checks the legal-worker corpus output against the on-chain legal_source_manifest PDA for a given jurisdiction. Detects tampering / drift between the off-chain corpus and the on-chain hash anchor. Returns verdict in {in-sync, drift, not-anchored, no-corpus}. Closes the chain-of-custody loop for resolve_legal_citation.

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": {
      "jurisdiction": "<jurisdiction>"
    },
    "name": "verify_corpus_manifest_onchain"
  }
}

Input Schema

NameRequiredDescriptionDefault
jurisdictionYesWorker jurisdiction code (LGPD, GDPR, MICAR, POPIA, DPDP, APPI, PIPA, PDP-ID, Malaysia-PDPA, Vietnam-Decree-13, PDPA-SG, PIPEDA, CCPA, LFPDPPP, PDPL-UAE, BriberyAct-UK). Internally maps to ≤16-byte on-chain ASCII code when needed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full disclosure burden. It does well on outcomes by enumerating the four verdicts {in-sync, drift, not-anchored, no-corpus} and stating the tamper-detection intent, but it never says this is a non-mutating read, what happens on an unknown jurisdiction code, or whether it performs network/RPC calls with possible latency or failure modes.

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?

Three tight sentences, each earning its place: what is compared, what it detects, what it returns, and where it fits in the workflow. The verdict list is front-loaded into the middle sentence and there is no filler or repetition.

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 usefully enumerates the return verdicts and states the integrity purpose, which is what an agent most needs. Remaining gaps are minor for a one-parameter verification tool: no note on read-only behavior, error conditions, or what 'no-corpus' versus 'not-anchored' imply for next steps.

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?

There is a single parameter at 100% schema description coverage, including the enumerated jurisdiction codes and the ≤16-byte on-chain ASCII mapping, so the schema already does the heavy lifting. The description only restates 'for a given jurisdiction' and adds no format, casing, or fallback semantics beyond what the schema supplies, which matches the baseline 3 for full coverage.

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 a specific verb pair ('cross-checks', 'detects tampering/drift') and precise resources (off-chain legal-worker corpus vs. the on-chain legal_source_manifest PDA), scoped to a jurisdiction. An agent can tell exactly what comparison is performed without opening the schema, and it is clearly distinct from siblings like resolve_legal_citation or verify_compliance_proof.

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: 'Closes the chain-of-custody loop for resolve_legal_citation' signals that this is a follow-up integrity check after citation resolution. However, there is no explicit when-to-use rule, no when-not-to-use case (e.g., jurisdiction not anchored), and no guidance on choosing between this and sibling verify_* tools.

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