Skip to main content
Glama

Caper

Build a transaction manifest

get_manifest

Step 3: a ready-to-sign transaction manifest. Kinds: create-caper, buy, sell, swap, create-proposal, vote, count, trigger, resolve, execute, activate-upgrade, exit, withdraw-founder, transfer-founder. Per-kind parameters – create-caper: name, cashtag, description, infoUrl?, iconUrl?, originToken? (resource address, vampire launch); buy: cashtag, xrd ($XRD to spend); sell: cashtag, tokens (caper tokens to sell); swap: from, to (cashtags), tokens (of from to sell) – one transaction that sells from into $XRD and buys to with it, so it pays the skim on both legs; create-proposal: cashtag, title, description, action (one action object, or an array of up to 4 the voters rank against each other and an always-appended "Do nothing"; each is { kind: "PAYOUT" | "INVEST" | "DIVEST" | "UPGRADE" | "METADATA" | "DEBATE", … }. METADATA rewrites the token's mutable metadata via metadataDescription / metadataIconUrl / metadataInfoUrl, at least one; DEBATE is a non-executable position in a debate – title and description only, and a winning one ends the proposal at the tally with no market window). Creation costs the proposal fee – 1% of the largest option's $XRD-equivalent amount, at least 500 $XRD – banked to the treasury and kept on pass or fail; vote: cashtag, proposalId (the P-… code), sequence (ranked on-chain option indexes, best first, including the trailing "Do nothing" index); count: cashtag, proposalId (the P-… code) – returns manifests, one or a volley to send at once; trigger, resolve: cashtag, proposalId (the P-… code); execute: cashtag, proposalId (the P-… code); for an UPGRADE this is step one of two, which records the candidate in the registry and starts its timelock; activate-upgrade: cashtag, proposalId (the P-… code) – step two of an UPGRADE, valid once the registry timelock lifts; refused before then with the time it lifts; exit: cashtag, votes? and tokens? (vote tokens to burn and caper tokens to sell, each defaulting to your whole balance) – one transaction that burns the vote tokens for your share of the treasury and sells the caper tokens back to the curve; withdraw-founder: cashtag – claims every accrued founder-fee leg, $XRD and caper tokens, to the founder badge's holder; transfer-founder: cashtag, recipient (account), withdrawAccrued? (default true: claim the accrued legs to you first; false leaves them to the recipient) – deposits the founder badge with the recipient. Here create-proposal's action rides as actionJson, a JSON string – e.g. '{"kind":"PAYOUT","title":"Grant","currency":"","amount":100,"recipient":""}'. Governance is two-phase: members rank ballots during the voting window (kind "vote"; each ballot costs 100 $XRD and mints 1 soulbound vote token); once the window closes, "count" tallies it (returning manifests, one or a volley to send at once); a supermajority pass arms "trigger", which locks the trailing TWAP as the baseline and opens the market window; after the window, "resolve" ratifies the winner unless that window's own TWAP is below the baseline, and "execute" runs a ratified winner – an UPGRADE in two steps, "execute" and then "activate-upgrade" once the registry timelock lifts. The vote legislates, the market ratifies. The cranks after the vote cost nothing beyond the network fee, and anyone can call them. You sign and submit the manifest yourself with your own key, then register the txHash with submit_tx. 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>",
      "account": "<account>"
    },
    "name": "get_manifest"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoswap: the cashtag of the caper token you buy
xrdNobuy: $XRD to spend
fromNoswap: the cashtag of the caper token you sell
kindYesWhat the transaction does
nameNocreate-caper: the caper's name
titleNocreate-proposal: proposal title
votesNoexit: vote tokens to burn (defaults to your whole balance)
tokensNosell / swap / exit: caper tokens to sell (exit: defaults to your whole balance)
accountYesYour account address (pays fees, receives tokens)
cashtagNoTarget caper's cashtag
iconUrlNocreate-caper: optional icon URL (defaults to a generated one)
infoUrlNocreate-caper: optional https project URL
sequenceNovote: ranked on-chain option indexes, best first — a full permutation including the trailing "Do nothing" index
recipientNotransfer-founder: the account that receives the founder badge
actionJsonNocreate-proposal: JSON for the action(s) – one action object, or an array of up to 4 the voters rank against each other and an always-appended "Do nothing"; each is { kind: "PAYOUT" | "INVEST" | "DIVEST" | "UPGRADE" | "METADATA" | "DEBATE", … }. METADATA rewrites the token's mutable metadata via metadataDescription / metadataIconUrl / metadataInfoUrl, at least one; DEBATE is a non-executable position in a debate – title and description only, and a winning one ends the proposal at the tally with no market window.
proposalIdNovote and every crank after it: the proposal's P-… code
descriptionNocreate-caper / create-proposal: description text
originTokenNocreate-caper: optional origin-token resource address (vampire launch)
withdrawAccruedNotransfer-founder: claim the accrued founder fees to you first (default true); false leaves them to the recipient

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already state non-read-only, open-world, non-idempotent, and non-destructive, and the description adds substantial context: the tool only builds a manifest, auth is required via login token, cranks cost only network fees and are permissionless, and proposal costs/timelocks are detailed. No contradiction with annotations.

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

Conciseness3/5

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

The description is front-loaded and every section conveys necessary complexity, but it is a dense run-on paragraph with heavy semicolon use, making it difficult to scan. Restructuring into bullets per kind or phase would improve clarity without losing information.

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?

For a 19-parameter, multi-kind tool with no output schema, the description covers the full governance lifecycle, costs, auth, and per-kind parameters. An agent has enough to invoke it correctly and understand the downstream signing/submission step.

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%, but the description adds meaningful relationships (e.g., swap sells from into XRD and buys to in one transaction that pays skim on both legs, exit defaults to full balances) and organizes per-kind required parameters. It duplicates some schema text, but the added semantic context raises it above baseline.

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 by stating the tool produces a ready-to-sign transaction manifest and lists all supported kinds, clearly distinguishing it from submit_tx, which submits the signed transaction. The title 'Build a transaction manifest' reinforces the verb+resource, though the 'Step 3' phrasing assumes a workflow not fully explained.

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 explains the end-to-end flow: call this to build a manifest, sign and submit it yourself, then register the txHash with submit_tx. It also provides per-kind parameter requirements and the Bearer token prerequisite, but stops short of explicit when-not-to-use or alternative-tool exclusions.

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