Skip to main content
Glama
mcp-cappz-marketplace

mcp-cappz-marketplace

Official

market_close

Closes a metered deal's payment channel on the XRP Ledger and records it, returning unused funds to the buyer; seller closes immediately, buyer closes after the settle delay.

Instructions

Either party of a metered deal: close the payment channel on the ledger and record it; the unused rest returns to the buyer. The seller’s close is immediate; the buyer’s takes effect after the settle delay (or at once after the channel expires) — run it again then. 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>"
    },
    "name": "market_close"
  }
}

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).
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

A3.9/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 unused funds return to the buyer, that seller close is immediate while buyer close is delayed, that a repeat call is needed, and that this moves real money on mainnet requiring explicit confirmation. It does not cover failure modes (already-closed channel, insufficient state) or what the recorded result 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?

Three dense sentences with the action front-loaded and no filler; each clause carries operational meaning. The colon-led opening ('Either party of a metered deal:') is slightly awkward, and the settle-delay clause is packed into a long em-dash construction.

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, annotation-free, no-output-schema mutation tool, the description covers the essential risks: money movement, network choice, consent gating, and the delayed/repeat-call semantics for buyers. Missing only error/repeat-call edge cases and any notion of what is recorded.

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 coverage is 100%, so the baseline is 3. The description adds some meaning beyond the schema for yes (consent from the person you act for) and implicitly ties as/demo to the practice market, but it adds nothing for network or contract beyond what the schema already documents.

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?

The description names a concrete verb and resource: 'close the payment channel on the ledger and record it' for a metered deal, by either party. It is specific enough to distinguish from generic deal actions, though it never explicitly contrasts with a sibling such as market_cancel, leaving the boundary to be inferred.

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 states who should call it (either party of a metered deal), the follow-up rule for the buyer ('run it again then' after the settle delay or channel expiry), and the mainnet precondition (pass yes=true only after consent). No explicit exclusions or named alternatives, so it falls short of a 5.

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