Skip to main content
Glama

verify_settlement

Did a kUSD payment count? Two independent answers. registry: the Kaspa Agent Market's verified settlement row(s) for the txid (it checked the box on its own node before recording it), or verified:false when it has none. node: when you also give the offer's payee_pubkey, cents and payment_id and this k402-mcp has a local kUSD wallet (stdio), the box is checked again on the wallet's node — an unspent kUSD box of exactly those cents, owned by the listed key tweaked by the payment_id, carrying the family's covenant id. A box the node has not indexed yet is asked again for up to wait_seconds (the index lags a broadcast by a few seconds). Free; never pays anything.

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": {
      "txid": "<txid>"
    },
    "name": "verify_settlement"
  }
}

Input Schema

NameRequiredDescriptionDefault
txidYes
centsNo
payment_idNo
payee_pubkeyNo
wait_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/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 well: it discloses that the tool is free, never pays anything, can retry for up to wait_seconds because the node index lags a broadcast, and returns verified:false when the registry has no row. It stops short of describing error behavior for malformed txids or what a partially matched box looks like.

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?

Front-loaded with the core question, then split cleanly into registry and node paths, then closing caveats about latency and cost. Dense but every clause carries information; the nested em-dash sentence for the node path is the only readability cost.

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 five-parameter, no-output-schema tool with no annotations, the description covers the two answer sources, their prerequisites, retry latency and the zero-cost guarantee. The remaining gap is what a negative or malformed-input response looks like beyond verified:false.

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 0%, so the description must compensate, and it does: cents, payment_id and payee_pubkey are explained as the triple needed to re-check the box on the wallet's node, including the key tweak by payment_id and exact-cents matching, and wait_seconds is tied to index lag. Only txid's format and validation rules are left unstated.

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?

The description opens with a specific question ('Did a kUSD payment count?') and names the exact resource: settlement verification for a given txid. It distinguishes itself from status-tracking siblings like kaspa_tx_status or kusd_spend_status by framing the output as two independent verification answers (registry row vs. node check).

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?

It clearly states the two modes and the conditions that enable the second: the node path requires payee_pubkey, cents and payment_id plus a local kUSD wallet over stdio, otherwise only registry is available. It does not name a sibling tool to use instead when neither answer is satisfactory, but the when-to-use context is strong.

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