Skip to main content
Glama

diem-payback

Four deterministic calculators over the live VVV and DIEM pair: carry against the $1/day credit ceiling, mint-versus-market-ask at the published rate, burn against the 2M/yr emission, and a wire route's true cost of goods with the miss rate in the divisor. Every figure sourced and stamped. Price: $0.05 per call, paid in USDC on Base mainnet over x402; an unpaid call answers HTTP 402 with the exact machine-readable payment terms.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "diem-payback"
  }
}

Input Schema

NameRequiredDescriptionDefault
diemNoOptional DIEM quantity for the carry module, greater than 0 (default 1).
credit_usdNoOptional annual Venice credit per DIEM in USD, greater than 0 (default 365, the $1-a-day ceiling).
wire_priceNoOptional wire price per call in USDC, 0 or more (default 0.25).
success_rateNoOptional success rate in percent, 1 to 100 (default 95).
upstream_costNoOptional upstream cost per attempt in USDC, 0 or more (default 0.02).
monthly_burn_usdNoOptional monthly revenue-funded burn in USDC, 0 or more (default 600000).
mint_vvv_per_diemNoOptional VVV per DIEM at the published mint rate, greater than 0 (default 476.19).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/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 a solid job on the unusual parts: it discloses the exact price ($0.05/call), the payment rail (USDC on Base mainnet via x402), and the failure behavior (unpaid call returns HTTP 402 with machine-readable terms) — a real trap an agent would otherwise hit. It also claims determinism and per-figure sourcing. It omits remaining behavior: whether any external network/rate lookups occur, latency, or rate limits.

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?

Two sentences, front-loaded with the capability list before the commercial terms, and no filler beyond a slightly promotional 'Every figure sourced and stamped.' The module enumeration is dense but each clause carries information. Minor cost: the four modules are run together in one long sentence, making it easy to skim past the parameter mapping.

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

Completeness3/5

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

There is no output schema, so the description must explain what comes back, and it does not — 'Every figure sourced and stamped' hints at provenance metadata but not the shape, units, or number of results. Combined with seven optional parameters and zero required ones, an agent cannot tell which subset of outputs to expect for a given call. The payment-model disclosure partially offsets this, keeping it at minimum-viable rather than deficient.

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% with per-parameter descriptions and defaults, so baseline is 3. The description does add some mapping value by naming the four computation modules that the seven parameters feed into (carry, mint-vs-ask, burn, wire route), but it never explicitly binds a parameter to its module, so the agent must infer that wire_price/success_rate/upstream_cost belong to the wire route and diem/credit_usd to carry.

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?

Names a specific resource and enumerates four distinct computations: carry vs. the $1/day credit ceiling, mint vs. market ask, burn vs. the 2M/yr emission, and wire route COGS with miss rate in the divisor. That is far more specific than the tool name 'diem-payback' alone. It stops short of 5 because it never says what the tool actually emits (a single combined figure? four separate results?) and does not differentiate itself from any sibling.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The implied use case is clear (modeling VVV/DIEM unit economics), and the payment precondition is stated explicitly. However, there is no when-to-use/when-not guidance, no statement about whether all four calculators always run or only those whose parameters are supplied, and no alternative tool named. Usage must be inferred from the parameter names.

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