Skip to main content
Glama

popcorn_verify_v2

Read-onlyIdempotent

Verify TAIN 2.0 evidence against keys fetched from the fixed POPCORN issuer URL. Caller jwks is replaced with published keys, including predecessors. Send a digest, never private work. Free; does not grant authority, establish current time, or verify settlement on chain.

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": {
      "response": "<response>",
      "jwks": "<jwks>",
      "expected_nonce": "<expected_nonce>",
      "expected_payload_digest": "<expected_payload_digest>"
    },
    "name": "popcorn_verify_v2"
  }
}

Input Schema

NameRequiredDescriptionDefault
jwksYesAccepted to match the call shape. The check replaces it with the published keys fetched from the fixed POPCORN issuer address.
responseYesThe TAIN 2.0 receipt response to verify. Send a digest, never private work.
expected_nonceYesThe nonce the receipt must carry.
expected_node_idNoOptional. The node id the receipt must carry.
previous_receiptNoOptional. A previous receipt to check this one against.
expected_payload_digestYesThe payload digest the receipt must carry.
max_clock_accuracy_radius_msNoOptional. The largest clock accuracy radius, in milliseconds, the check accepts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / properties / expected_node_id / description
      Added value: +"Optional. The node id the receipt must carry."
    • addedInput schema / properties / expected_nonce / description
      Added value: +"The nonce the receipt must carry."
    • addedInput schema / properties / expected_payload_digest / description
      Added value: +"The payload digest the receipt must carry."
    • addedInput schema / properties / jwks / description
      Added value: +"Accepted to match the call shape. The check replaces it with the published keys fetched from the fixed POPCORN issuer address."
    • addedInput schema / properties / max_clock_accuracy_radius_ms / description
      Added value: +"Optional. The largest clock accuracy radius, in milliseconds, the check accepts."
    • addedInput schema / properties / previous_receipt / description
      Added value: +"Optional. A previous receipt to check this one against."
    • addedInput schema / properties / response / description
      Added value: +"The TAIN 2.0 receipt response to verify. Send a digest, never private work."
  2. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the bar is lower, yet the description adds genuinely non-obvious behavior: the caller-supplied jwks is discarded and replaced with published keys including predecessors, verification is free, and it confers no authority. The remaining gap is that it never describes what a positive versus negative verification looks like or how predecessor key rotation affects the outcome.

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?

Four short sentences, front-loaded with the core action before the constraints, with essentially no filler. Terms like 'TAIN 2.0' and 'predecessors' are left unexplained, which costs a little readability but not length.

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

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, and the description never indicates what the tool returns — the presence and shape of a verification verdict, which is the primary thing an agent needs from a verifier. The deeply nested optional previous_receipt chain is also unaddressed, so for a tool with 7 parameters and recursive structure the definition stops short of complete.

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 the schema already documents every parameter including the recursive previous_receipt chain and max_clock_accuracy_radius_ms. The description reinforces the jwks-replacement behavior and the 'send a digest' constraint, but adds no syntax, format, or chain-ordering detail the schema does not already carry. Baseline 3 is appropriate here.

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: verify TAIN 2.0 evidence against keys from the fixed POPCORN issuer URL. It also scopes the operation negatively ('does not grant authority, establish current time, or verify settlement on chain'), which helps distinguish it from popcorn_time and settlement-related siblings. It never explains how it differs from the sibling popcorn_verify, despite the '_v2' suffix implying a version choice the agent must make.

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?

The negative scope sentences implicitly route the agent elsewhere for time and on-chain settlement, and 'Send a digest, never private work' is a usable precondition. But there is no explicit when-to-use guidance for this tool versus popcorn_verify, and no statement of prerequisites such as needing a receipt produced by the POPCORN issuer.

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.