Skip to main content
Glama

nexus_calculate_fee

Calculate the 0.5% protocol house fee and net seller payout for any trade volume using the gross trade amount in USDX.

Instructions

Calculate protocol 0.5% house fee and net seller payout for any trade volume.

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": {
      "gross_amount": "<gross_amount>"
    },
    "name": "nexus_calculate_fee"
  }
}

Input Schema

NameRequiredDescriptionDefault
gross_amountYesTotal gross trade amount in USDX.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.1

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden. It usefully discloses the fee rate and the two returned values, but never states that this is a side-effect-free pure computation, how rounding is handled, or whether the payout is gross minus fee. Those omissions matter for a financial calculation an agent may chain into other calls.

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?

A single front-loaded sentence with the fee rate and both outputs stated up front; no filler or redundant framing.

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 one-parameter calculator with no output schema, the description does name the two quantities returned, so an agent knows roughly what comes back. What is missing is precision on return shape (currency, precision, rounding) for a tool whose result feeds value calculations.

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% and the single parameter already documents that gross_amount is the total gross trade amount in USDX. The description's 'for any trade volume' adds only a marginal restatement and no constraint such as non-negativity or accepted currency.

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?

Uses a specific verb ('Calculate') with two concrete outputs (house fee, net seller payout) and even states the rate (0.5%). It is clearly distinguishable from the listed siblings, which handle discovery, identity, order books and agreement signing, though it does not explicitly contrast itself with any of them.

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

Usage Guidelines2/5

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

It says 'for any trade volume,' which hints at scope, but there is no statement of when an agent should call this versus doing arithmetic itself, no preconditions, and no exclusions. The usage is only inferable from the tool name and subject matter.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.