Skip to main content
Glama

Duo Data Utilities: IBAN, VAT, ISIN Validation API

Money split: allocate an amount into shares with no rounding loss

money_split
Read-onlyIdempotent

Money split: split a money amount into shares without losing or inventing a cent. Divide evenly into N parts, or by a list of ratios, and the remainder is distributed one minor unit at a time by a named, deterministic rule — largest-remainder, first-wins or last-wins — so the parts always sum exactly to the original. Uses the ISO 4217 minor-unit exponent of the currency, so zero- and three-decimal currencies work (JPY 0, KWD 3); metals and XXX are rejected. Price: $0.05 per successful call, paid over x402 (USDC on Base).

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": {
      "amount": "<amount>",
      "currency": "<currency>"
    },
    "name": "money_split"
  }
}

Input Schema

NameRequiredDescriptionDefault
ruleNoRemainder rule: largest-remainder (default), first, last or round-robin. Accepted: largest-remainder, first, last, round-robin.
partsNoNumber of equal parts, 1-1000. One of parts or ratios. Accepted: integer 1-1000.
amountYesDecimal amount, absolute value below 1e12. Accepted: a decimal amount with absolute value below 1e12.
ratiosNoComma-separated non-negative ratios, at most 1000, each with at most 15 integer digits and 15 decimal places. One of parts or ratios. Accepted: comma-separated non-negative numbers, at most 1000.
currencyYesISO 4217 alpha-3 code. Accepted: an ISO 4217 alpha-3 code.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / properties / parts / anyOf
      Added value: +[
      +  {
      +    "maximum": 9007199254740991,
      +    "minimum": -9007199254740991,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / parts / type
      Removed value: -"string"
  2. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only cover read-only/idempotent/closed-world; the description adds the non-obvious core behavior — no cent is lost or invented, the residual minor units are distributed by a deterministic named rule, and results depend on the currency's ISO 4217 minor-unit exponent (JPY 0, KWD 3). It also discloses an input rejection (metals, XXX) and commercial terms ($0.05 per successful call, x402/USDC on Base), which an agent must know before invoking.

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?

Purpose is front-loaded in the first clause, followed by mechanics, edge cases, and pricing in a logical order with no filler sentences. It is a single dense block rather than separated points, which slightly slows scanning of the mode and rule information.

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 covers input semantics, guarantees, and constraints thoroughly, but never indicates the return shape (e.g. list of share strings vs numbers, and how many entries for each mode), which is the one thing an agent must guess. Everything else needed to call it safely is present.

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 the baseline is 3; the description does add real meaning by explaining why the rule parameter exists (deterministic remainder distribution) and why currency matters (minor-unit exponent). However, its enumeration 'largest-remainder, first-wins or last-wins' omits the fourth enum value round-robin and invents the labels 'first-wins'/'last-wins' that do not match the schema's 'first'/'last', leaving a small mismatch the agent must reconcile with the schema.

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?

It states a specific verb and resource ('split a money amount into shares') plus a hard guarantee ('sum exactly to the original'), which no sibling tool offers — nothing else in the catalog does amount allocation, so differentiation is inherent. The first clause alone lets an agent decide whether this tool is the right one.

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?

It distinguishes the two operating modes clearly ('Divide evenly into N parts, or by a list of ratios') and names the selection knob for the remainder rule. There is no explicit when-not guidance beyond rejecting metals/XXX, but for a single-purpose arithmetic utility the context is sufficient to choose correctly.

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.