Skip to main content
Glama
mcp-cappz-marketplace

mcp-cappz-marketplace

Official

market_claim

Sign an off-ledger payment-channel claim for total units used in a metered deal, giving the seller a redeemable proof of usage.

Instructions

Buyer of a metered deal: sign a payment-channel claim for the units used so far (the total, not the increase) with your wallet key, off the ledger and free. Give the printed claim to the seller; they redeem it with cappz-market redeem.

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": {
      "contract": "<contract>",
      "units": "<units>"
    },
    "name": "market_claim"
  }
}

Input Schema

NameRequiredDescriptionDefault
asNoPractice market only: act as this party id.
demoNoUse the practice market on this computer (nothing published, no real money).
unitsYesTotal units used so far (up to the cap).
networkNoWhich market (default testnet). Validate on testnet, then use mainnet (real XRP).
contractYesContract id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv16.9.1

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does so well: it discloses that signing uses the wallet key, happens off the ledger, and is free — three facts an agent could not infer from the schema. It also explains the cumulative semantics of the claim and the downstream redemption path, though it omits failure behavior (e.g., what happens at/over the cap) and whether repeated calls replace or supersede prior claims.

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

Conciseness5/5

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

Two tight sentences, front-loaded with the actor and action, with every clause doing work — the parenthetical about totals and the "off the ledger and free" cost note are both load-bearing. No filler or restatement of the tool name.

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 5-parameter, no-annotation, no-output-schema mutation tool, the description covers purpose, cost, ledger behavior, and the hand-off to redemption, which is enough for an agent to invoke it correctly. Remaining gaps are edge cases: cap behavior, whether the printed claim is the return value, and any authorization prerequisites.

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?

Schema description coverage is 100%, so the schema already explains contract, units, network, demo, and as, making 3 the baseline. The description reinforces the critical nuance of units ("the total, not the increase"), which is genuinely useful disambiguation, but it adds nothing about the practice-market parameters or the network's real-money implications beyond what the schema states.

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 ("sign a payment-channel claim") along with the exact role and scope ("Buyer of a metered deal ... for the units used so far"). An agent can immediately tell this is the buyer-side signing step of a metered payment flow, distinct from sibling operations like deliver or cosign.

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 frames who uses it (the buyer of a metered deal) and what comes next (hand the printed claim to the seller, who redeems it via cappz-market redeem), which gives the agent a usable place in the workflow. It lacks explicit when-not guidance — e.g., whether it applies to non-metered deals or how it relates to other claim-like siblings such as market_deadman-claim.

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