Skip to main content
Glama

AlgoVesta MCP Trading

verify_receipt

Read-onlyIdempotent

Verifies an order receipt: ed25519 signature + per-user hash chain. Returns signature_valid + chain_valid (verified = both True). If an earlier receipt in the chain was altered, chain_valid=False (proof of tamper-evidence). Public key: /mcp/receipts/pubkey. Receipts issued before the ed25519 rollout were HMAC-signed and return legacy=True.

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_id": "<receipt_id>"
    },
    "name": "verify_receipt"
  }
}

Input Schema

NameRequiredDescriptionDefault
receipt_idYesreceipt_id of the receipt to verify (receipt.receipt_id from a place/close/cancel response). Only your own receipts can be verified.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: the returned flags (signature_valid, chain_valid), the derived 'verified' predicate, the meaning of chain_valid=False as evidence an earlier receipt was altered, the public-key location relevant to the openWorldHint, and the legacy=True path for pre-rollout HMAC receipts. That is exactly the extra context annotations cannot convey.

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?

Purpose and outputs are front-loaded, and each subsequent sentence carries distinct information (tamper semantics, key location, legacy fallback). Slightly dense with parentheticals, but nothing is redundant enough to cut.

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

Completeness5/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 compensates by explaining the return fields and their interpretation, including the failure mode and the legacy case. For a one-parameter read-only verification tool, an agent has everything needed to call it and read the result.

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?

The single receipt_id parameter is fully documented in the schema (100% coverage), including where it comes from and the 'only your own receipts' restriction. The description adds no additional meaning about the parameter, so the baseline 3 applies.

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?

States a specific verb and resource ('verifies an order receipt') and immediately names the two mechanisms checked (ed25519 signature + per-user hash chain). No sibling tool in the list performs verification, so there is no ambiguity about which tool to call for this job.

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?

Usage context is clear from the schema note ('receipt.receipt_id from a place/close/cancel response') and the description's framing of tamper detection, so an agent knows to call it after receiving a receipt. It does not name an alternative tool or state when-not to call it, so it falls short of full when/when-not guidance.

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.