Skip to main content
Glama

Settlement Cost Check (Base)

settlement_cost
Read-onlyIdempotent

Settlement Cost Check (Base): what moving money costs RIGHT NOW (live gas price, L1 data fee, ETH/USD from Chainlink on Base) for an x402 settlement (~86,550 gas, measured), a USDC transfer, an ETH transfer and an approval, in ETH and USD. Send amount_usd (+ payments_per_day) to learn whether a payment that small is worth settling on its own: SETTLE / BATCH_OR_CREDITS / DONT_SETTLE_SINGLY, the overhead %, break-even payment size, and cheaper options (CDP free tier, Circle Gateway batching, prepaid credits). By OMENZ. (MCP calls run in AYNE, the free playzone; production: GET https://www.omenz.org/api/tollbooth/v1/settlement-cost, $0.002 via x402.)

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": "settlement_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
amount_usdNoamount usd
payments_per_dayNopayments per day

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds genuinely new behavioral context: the data is live ("RIGHT NOW", live gas, Chainlink feed), the gas figure is a measured ~86,550 rather than a guess, the response is a categorical verdict plus overhead %, break-even and cheaper alternatives, and production usage is a paid x402 endpoint at $0.002 while MCP calls run free. It does not state freshness/caching windows or latency.

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 core capability is front-loaded well, but the sentence is overloaded with stacked parentheticals and restates the title verbatim at the start. The trailing provider credit and production-endpoint/price boilerplate dilutes an otherwise dense, useful description.

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?

With no output schema, the description does the work of describing returns (SETTLE / BATCH_OR_CREDITS / DONT_SETTLE_SINGLY, overhead %, break-even size, cheaper options), which is exactly what an agent needs before calling. Both parameters are optional, and the description never specifies default behavior when amount_usd is omitted — the one meaningful gap for a 2-parameter tool.

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 both parameters are already documented, and the bare schema text ("amount usd", "payments per day") is thin. The description clarifies that amount_usd drives the worth-it judgment and that payments_per_day feeds the volume/batching reasoning, which is a modest but real semantic gain. It does not say what happens when either optional parameter is omitted, so it stays at baseline.

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 first sentence names a specific resource (settlement cost on Base) and enumerates exactly what it prices: live gas, L1 data fee, ETH/USD via Chainlink, for an x402 settlement, USDC transfer, ETH transfer and approval, in both ETH and USD. It is unambiguous what the tool computes. It does not, however, distinguish itself from the sibling 'cost_estimate', which an agent may reasonably confuse it with.

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?

"Send amount_usd (+ payments_per_day) to learn whether a payment that small is worth settling on its own" gives a concrete trigger condition that tells the agent when this tool is the right call. It stops short of naming when NOT to use it or pointing to the sibling cost_estimate for non-settlement cost questions.

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