Skip to main content
Glama

Caper

Register a committed transaction

submit_tx
Idempotent

Step 4: register a committed transaction by txHash. Kinds: create-caper, buy, sell, swap, proposal, vote, count, trigger, resolve, execute, activate-upgrade, exit, withdraw-founder, transfer-founder. The server verifies before mirroring anything: receipts are re-read on-ledger (forged or foreign txHashes are refused, replays are idempotent). Context per kind – create-caper, exit, withdraw-founder, transfer-founder: cashtag; proposal: proposalId; count, trigger, resolve, execute, activate-upgrade: code (the P-… code). The answer's result is applied (the receipt verified and this call wrote it to Caper's mirror of the ledger), already (the mirror held it before this call, so a replay is safe), unindexed (the receipt's event, or the step before it, has not reached the mirror: retry in a few seconds) or refused (the receipt does not match the request, and reason says why); registered is true for the first two, and count also answers the proposal's status once registered. A buy, sell or exit that is not registered, and a swap with neither leg registered, is a tool error carrying result and reason. Requires the Bearer token from the login tool, sent as an HTTP Authorization: Bearer <token> header on the POST carrying this call.

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": {
      "kind": "<kind>",
      "txHash": "<txHash>"
    },
    "name": "submit_tx"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNothe cranks after the vote: the proposal's P-… code
kindYesWhat the transaction did
txHashYesThe committed transaction intent hash (txid_…)
cashtagNocreate-caper, exit and the founder kinds: the caper's cashtag
proposalIdNoproposal: the id from the create-proposal manifest response

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations (which only say idempotentHint and non-destructive), the description explains the server-side verification model (receipts re-read on-ledger, forged/foreign hashes refused), the full result vocabulary applied/already/unindexed/refused with meanings, and which failures surface as tool errors. It also spells out the auth header requirement, which no annotation covers.

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 description is front-loaded with the step number and core action, and every block (kinds, verification, per-kind context, results, errors, auth) carries distinct information. It is dense and semicolon-heavy in the results sentence, but no sentence is truly disposable.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description fully compensates by explaining the response fields (`result`, `reason`, `registered`, and `status` for count) and which outcomes raise errors. Combined with the auth prerequisite and retry semantics, an agent has everything needed to call and interpret this tool correctly.

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 documents every parameter including the conditional cashtag/proposalId/code mapping. The description restates that mapping per kind, which is mildly reinforcing but adds little beyond the structured data, so the baseline of 3 is appropriate.

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 verb and resource ("register a committed transaction by txHash") and situates it as step 4 of a pipeline. The enumerated kinds and the verification semantics make clear exactly what class of operation this handles, which no sibling tool covers.

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?

Usage context is strong: it names the prerequisite (`login` tool token sent as an Authorization header) and gives retry guidance for the `unindexed` case ("retry in a few seconds"). It does not explicitly name the tool that produces the txHash or state when not to call it, but the step framing and per-kind context requirements give an agent clear routing signals.

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