Skip to main content
Glama
mcp-cappz-marketplace

mcp-cappz-marketplace

Official

market_redeem

Redeems a buyer’s latest PaymentChannelClaim, pays the channel-increase fee from the seller account, and records the payment; optionally closes the channel to return unused funds.

Instructions

Seller of a metered deal: redeem the buyer’s latest claim on the ledger (PaymentChannelClaim), pay the fee on the increase from your account (a channel pays only you), and record both. --close also closes the channel, returning the unused rest to the buyer. Moves money: on mainnet pass yes=true only after the person you act for agrees.

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>",
      "claim": "<claim>"
    },
    "name": "market_redeem"
  }
}

Input Schema

NameRequiredDescriptionDefault
asNoPractice market only: act as this party id.
yesNoConfirms a mainnet money movement.
demoNoUse the practice market on this computer (nothing published, no real money).
claimYesThe claim JSON (or a file of it) the buyer printed with cappz-market claim.
closeNoClose the channel in the same transaction.
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.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 this moves money, that the fee on the increase is charged to the acting account, that only this party gets paid from the channel, and that close additionally refunds the unused remainder to the buyer. It does not address idempotency, what happens if a claim was already redeemed, or irreversibility, which are meaningful gaps for a value-moving operation.

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?

The role and primary action are front-loaded, followed by the optional close behavior and then the money-safety warning, which is a sensible ordering. Sentences are dense but earn their place; the '--close' CLI-style notation is slightly incongruent with a JSON parameter named close, a minor clarity 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 seven-parameter, no-annotation, no-output-schema money-moving tool, the description covers the actor, the mutation, the fee consequence, the close side effect, and the mainnet consent gate. It leaves unclear what "record both" produces on success and whether repeated redemption is safe, but the essentials for correct invocation are present.

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 schema already documents all seven parameters and a 3 would be defensible. The description still adds real meaning beyond the schema for the two behaviorally loaded ones: close (also closes the channel and returns the unused rest to the buyer) and yes (mainnet money-movement confirmation gated on consent). The --close flag notation loosely maps to the close parameter, but as/demo/network gain nothing beyond their schema text.

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 states a specific role ("Seller of a metered deal") and a concrete verb+resource chain: redeem the buyer's PaymentChannelClaim on the ledger, pay the fee on the increase, and record both. The named ledger object and the seller-only framing let an agent identify exactly which actor this tool is for without opening the schema.

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 the situation (seller redeeming a buyer's latest claim) and gives an explicit guardrail for the risky case: on mainnet pass yes=true only after the person you act for agrees. It does not name alternative tools or say when redemption should be deferred to a different workflow (e.g. dispute or close-request), so exclusion guidance is absent.

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