Skip to main content
Glama
@voluntasfi/mcp-server

@voluntasfi/mcp-server

Official
by VoluntasFi

voluntas_calculate_escrow_fee

Read-onlyIdempotent

Calculates escrow fees with 20 bps standard, 10 bps holder, or 50 bps ceiling rates, and computes net from gross or gross required for a target seller net.

Instructions

Pure local BigInt escrow calculator matching VoluntasEscrow.sol floor math (20 bps standard, 10 bps $VLNT holder, 50 bps max ceiling). Supports computing net from gross or minimal gross required for a target seller net floor.

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": {
      "amountHuman": "<amountHuman>"
    },
    "name": "voluntas_calculate_escrow_fee"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNofrom_gross
feeBpsNo
decimalsNo
amountHumanYesDecimal token amount (e.g. '10000' or '250.75').

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuinely useful behavior beyond that: it is a pure local BigInt computation, matches on-chain floor math, and the fee tiers (20/10/50 bps) are protocol constants. It stops short of saying how rounding is applied to the result or what happens when feeBps conflicts with the holder tier.

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 dense sentences with no filler, front-loaded with the core identity and the contract it mirrors before the mode options. The parenthetical bps list is information-bearing rather than decorative, though the phrasing is jargon-heavy for an agent unfamiliar with 'floor math'.

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 bears the burden of describing return values, and it only gestures at them ('computing net', 'minimal gross required'). It never says whether results come back as a BigInt string, a human decimal, or what unit the seller-net floor is expressed in, which matters for a pure calculator with no server-side validation.

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 only 25% (just amountHuman is described), so the description has to carry weight, and it does for the two most consequential parameters: it explains that feeBps encodes standard 20 bps / 10 bps holder / 50 bps ceiling, and that mode selects gross-to-net or net-to-gross. Only decimals is left entirely to the schema, a minor residual gap.

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?

States a specific verb and resource ('escrow calculator') and pins the scope precisely: pure local BigInt computation that mirrors VoluntasEscrow.sol floor math. An agent knows exactly what it gets, though it never explicitly contrasts itself with the other voluntas_* siblings (which are quote/governance/link tools, so the distinction is inferable rather than stated).

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 second sentence implies the two usage modes ('computing net from gross' vs 'minimal gross required for a target seller net floor'), which maps to the mode enum, but the agent must connect them itself. There is no explicit when-to-use/when-not-to-use guidance and no statement of prerequisites such as needing a known fee tier or token decimals.

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