Skip to main content
Glama

Decisium Engine

Verify a receipt

decisium_verify_receipt
Read-onlyIdempotent

Recompute the gate of a signed receipt against a ruleset the verifier selects. Act only on actionable_now; a historical (issuance) check never licenses an action. Effects: none (no governance sequence is accepted, nothing is written except the API audit line). Idempotence: same answer for the same receipt while the ledger state does not change.

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_jws": "<receipt_jws>",
      "expected_mapping_id": "<expected_mapping_id>"
    },
    "name": "decisium_verify_receipt"
  }
}

Input Schema

NameRequiredDescriptionDefault
atNonow (default): may it be acted on now? issuance: was it valid when issued (audit).
receipt_jwsYes
expected_mapping_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world; the description adds real value beyond them: no governance sequence is accepted, nothing is written except an API audit line, and idempotence only holds while the ledger state is unchanged. That last clause sharpens and effectively qualifies idempotentHint=true rather than contradicting it. It doesn't state failure modes or error behavior, so not a 5.

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, each carrying a distinct fact (what, when it may license action, side effects, idempotence), with the core action front-loaded. Dense but jargon-heavy phrasing ('gate', 'governance sequence') costs a little readability without adding waste.

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, so the description must explain what comes back, and it never says what 'recompute the gate' yields (a verdict object? actionable_now flag? reasons?). Side effects and idempotence are well covered, but an agent cannot predict the response shape.

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?

With 33% schema coverage the description should carry more of the load. It does clarify that the ruleset (expected_mapping_id) is chosen by the verifier and reinforces the now-vs-issuance distinction for the `at` enum, but receipt_jws — a required nested object — is left entirely unexplained in both schema and description.

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 object: 'recompute the gate of a signed receipt against a ruleset.' That is concrete and distinguishable from state-reading siblings. It does not explicitly name or contrast with an alternative (e.g. evaluate_engagement), and 'gate' is domain jargon an agent must infer, so it stops short of a 5.

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 a clear operational rule: 'Act only on actionable_now; a historical (issuance) check never licenses an action,' which tells the agent which result to trust and warns against a common misuse. It does not say when to call this tool versus the evaluation/state siblings, so it isn't a full when/when-not/alternative breakdown.

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