Skip to main content
Glama

AgentRail

Estimate trading fees

agentrail_estimate_fees
Idempotent

Estimate the exchange fee for a trade of a given size at public base-tier rates. Costs 1 credit per successful call. AgentRail never places orders. Example: Kraken, taker, 1,000 USD.

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": {
      "venue": "<venue>",
      "liquidity": "<liquidity>",
      "notional_usd": "<notional_usd>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "agentrail_estimate_fees"
  }
}

Input Schema

NameRequiredDescriptionDefault
venueYes
liquidityYesmaker = resting limit order; taker = order that fills immediately
notional_usdYesTrade size in USD
idempotency_keyYesUnique per distinct call, e.g. a UUID. Retrying with the SAME key and SAME arguments is never charged twice and returns the original result.

Output Schema

NameRequiredDescriptionDefault
venueYes
billingYes
fee_usdYes
scheduleYes
liquidityYes
disclaimerYes
fee_rate_pctYes
notional_usdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Beyond the annotations, the description discloses the metered cost ("1 credit per successful call") and the pricing-tier limitation, both of which affect how an agent should budget and interpret the result. The readOnlyHint=false is consistent with a credit-consuming call, and the idempotency/no-double-charge behavior is already carried by the schema's idempotency_key description, so nothing is contradicted or missing at a critical level.

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

Conciseness5/5

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

Four short sentences, front-loaded with purpose, then cost, then a safety caveat, then a concrete example. Every sentence carries distinct information with no repetition of the name or title.

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 four-parameter, single-output estimation tool with an output schema and strong idempotency documentation, the description covers purpose, cost, safety scope, and a usage example. The only mild gap is that it does not state the fee currency or explicitly warn that volume-tier discounts are excluded, though "base-tier" strongly implies the latter.

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 75% and the description adds real meaning on top: the worked example "Kraken, taker, 1,000 USD" maps concrete values onto venue, liquidity, and notional_usd, and "public base-tier rates" signals that no volume-tier parameter exists. The idempotency_key is left to the schema, which documents it thoroughly.

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?

States a specific verb and resource ("Estimate the exchange fee for a trade") plus scope qualifiers ("given size", "public base-tier rates"), which cleanly separates it from the account/health/heartbeat siblings. An agent knows exactly what it gets back conceptually without opening the schema.

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?

Gives clear context for use: it is a pure calculation, limited to public base-tier rates, and explicitly notes "AgentRail never places orders," which heads off any attempt to treat it as an execution tool. No alternative sibling is named, but none of the listed siblings overlap with fee estimation, so the guidance is adequate rather than exhaustive.

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