Skip to main content
Glama

verify_payment

Confirm an on-chain Nano send to the request's one-time address, then approve that request's API call exactly once. Raises the required amount if higher is quoted; repeats return 'spent'.

Instructions

Service side: approve the call for request_id once an on-chain send of at least amount_raw is confirmed to its one-time address. Approves exactly once; a repeat returns status='spent'.

amount_raw can only make the check STRICTER: the amount actually required is the higher of it and what this server quoted for request_id.

There is deliberately no require_onchain argument here. The service method takes one so in-process tests can run without a node, but over the tool surface the caller is the payer, and a payer that can pass require_onchain=false is approved with tx_hash "simulated" without any payment at all.

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": {
      "request_id": "<request_id>",
      "amount_raw": "<amount_raw>"
    },
    "name": "verify_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
amount_rawYes
request_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / properties / require_onchain
      Removed value: -{
      -  "default": true,
      -  "title": "Require Onchain",
      -  "type": "boolean"
      -}
  2. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations present, the description carries the full burden and does well: it discloses idempotency ('approves exactly once'), the repeat-call return value (status='spent'), and the security rationale for the omitted bypass flag. It leaves permission/auth requirements and failure modes (e.g., insufficient on-chain amount) undescribed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Strong front-loading in the first sentence, but the third paragraph is a design rationale about in-process tests that is only indirectly useful to a calling agent (the actionable part is simply 'no require_onchain parameter exists'). Some wording could be tightened without losing meaning.

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 2-required-parameter mutation with no annotations and no output schema, the definition covers the essential behavior: precondition, exactly-once semantics, and one repeat-call return. Gaps remain around error behavior and what a successful approval returns, but nothing critical to calling it correctly is missing.

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 description coverage is 0%, so the description must compensate and largely does: amount_raw is defined as a lower bound on the requirement because the effective amount is the max of it and the server's quote — meaning the agent cannot overpay-forgive or underpay. request_id is identified as the request being approved, though its format/source is never stated.

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 (approve) and resource (the call for request_id) plus the precondition of a confirmed on-chain send to a one-time address. It implicitly contrasts with pay_and_call (which performs the payment) but never names siblings, so an agent must infer the boundary from context rather than being told.

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?

The trigger condition is explicit: call this only once an on-chain send of at least amount_raw is confirmed to the one-time address. It also explains why a `require_onchain` argument is absent, which steers the agent away from attempting a bypass. No explicit statement of when NOT to use it or which sibling handles the un-paid or pre-payment case.

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