Skip to main content
Glama
SlipSentry MCP

SlipSentry MCP

Official

verify_policy_receipt

Verify a signed SlipSentry verdict receipt by checking its HMAC-SHA256 signature, 5-minute expiry, and that it authorizes signing before you proceed with a trade.

Instructions

Verify the HMAC-SHA256 signature and 5-minute TTL of a SlipSentry verdict receipt and check whether authorizedToSign is true (verdict === ALLOW plus optional policyHash and trade-intent bindings).

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": "verify_policy_receipt"
  }
}

Input Schema

NameRequiredDescriptionDefault
receiptYesSigned receipt object returned by audit_solana_trade.
expectedNoOptional signer-side expected policyHash, outputMint, inputMint, or amountUsd bindings.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.5/5.0
Behavior3/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 disclose real behavioral traits: the cryptographic mechanism (HMAC-SHA256), a hard freshness window (5-minute TTL), and the exact predicate for a positive result (verdict === ALLOW plus bindings). It omits failure semantics — whether an invalid/expired receipt raises, returns false, or returns a structured reason — and says nothing about permissions or side effects.

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?

A single front-loaded sentence with no filler, and the verification criteria are stated before the parenthetical qualifier. The parenthetical packing of verdict/authorizedToSign/policyHash/trade-intent is dense enough to require a second read.

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?

For a two-parameter verification tool with a nested receipt object and no output schema, the description should say what a successful and failed verification look like, since nothing else in the definition does. The mechanism is well covered; the return contract is the missing half.

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 is 3, but the description adds genuine meaning by characterizing the optional `expected` fields collectively as policyHash and trade-intent bindings, which clarifies why a caller would supply expectedInputMint/expectedOutputMint/expectedAmountUsd. It still does not explain how mismatches are reported.

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?

Names a specific verb (verify) and a specific resource (a SlipSentry verdict receipt), then enumerates exactly what is checked: HMAC-SHA256 signature, 5-minute TTL, and the authorizedToSign/verdict===ALLOW condition. The scope is unambiguous and clearly distinct in substance from verify_pool_depth_and_impact, though it never explicitly routes against any sibling.

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: an agent can infer this is called on a receipt produced by audit_solana_trade (that link lives in the schema, not the description). There is no explicit when-to-use, when-not-to-use, or statement about what to do when verification fails.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.