Skip to main content
Glama

spurvik_explain_receipt

Read-onlyIdempotent

Explain the fields of an HMAC provenance receipt JSON. If signingSecret is passed, or SPURVIK_SIGNING_SECRET is set, check the HMAC locally with verifyProvenanceSignature, which checks that the record's signed fields still match the HMAC-SHA-256 signature. It does not show that a notice was shown, that output is marked, or that your system meets the Act. The signing secret is not logged. Omit the secret to explain the fields without checking.

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": {
      "receipt": "<receipt>"
    },
    "name": "spurvik_explain_receipt"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainNoOptional public website or app domain (e.g. personio.de) to prefill the Art. 12 HMAC cockpit and EU signup links.
localeNoOptional EU language code (en, de, fr, nl, da, sv, es, it) for localized Art. 12 & GDPR HMAC documentation.
receiptYesA Spurvik Art. 12 provenance receipt JSON object or JSON string (inspected in memory without storing raw data).
signingSecretNoOptional HMAC-SHA256 signing secret (>= 16 characters) to recompute and check the receipt signature in memory.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / domain
      Added value: +{
      +  "description": "Optional public website or app domain (e.g. personio.de) to prefill the Art. 12 HMAC cockpit and EU signup links.",
      +  "type": "string"
      +}
    • addedInput schema / properties / locale
      Added value: +{
      +  "description": "Optional EU language code (en, de, fr, nl, da, sv, es, it) for localized Art. 12 & GDPR HMAC documentation.",
      +  "type": "string"
      +}
  2. Changed2 schema fields changed
    • addedInput schema / properties / receipt / description
      Added value: +"A Spurvik Art. 12 provenance receipt JSON object or JSON string (inspected in memory without storing raw data)."
    • addedInput schema / properties / signingSecret / description
      Added value: +"Optional HMAC-SHA256 signing secret (>= 16 characters) to recompute and check the receipt signature in memory."
  3. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare this read-only, idempotent and closed-world, so the description's job is added context — and it delivers: verification runs locally in memory, the signing secret is not logged, and it is explicit about what a passing HMAC does NOT prove (no notice shown, no output marked, no Act compliance). That scope-limiting detail is exactly what an agent cannot infer from annotations.

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?

Five sentences, front-loaded with purpose, then the verification branch, then the limitation caveats. Each sentence carries either a behavioral fact or a scope boundary; nothing is redundant or buried.

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 four-parameter read-only tool with no output schema, the description covers purpose, optional verification mode, secret handling and the limits of the result. The only gap is that it does not sketch what the field explanation actually contains, though that is predictable from the tool's name.

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 baseline would be 3, but the description adds meaning the schema lacks: signingSecret can be supplied directly or via the SPURVIK_SIGNING_SECRET environment variable, and omitting it changes the tool's behavior rather than just its input. The domain and locale parameters are left entirely to 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?

States a specific verb and resource: "Explain the fields of an HMAC provenance receipt JSON." That is clearly distinguishable from the scan/check/generate siblings, but the description never names an alternative tool, so sibling differentiation is only 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?

Gives an explicit conditional path ("If signingSecret is passed, or SPURVIK_SIGNING_SECRET is set, check the HMAC locally") plus the no-check variant ("Omit the secret to explain the fields without checking"), and an explicit when-not in the legal disclaimers. It stops short of pointing to any sibling tool for the cases it explicitly declines to cover.

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.