Skip to main content
Glama

Split a KRW bill exactly

split_bill
Read-only

Divide a total in whole Korean won as evenly as possible. Returns up to two groups that sum to the original bill. No transfers or payment collection.

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": {
      "total_krw": "<total_krw>",
      "people": "<people>"
    },
    "name": "split_bill"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoLanguage of the result and editor. Defaults to English.
peopleYesNumber of people, all sharing equally.
versionNoVersion of the exact integer-split formula.
total_krwYesWhole won as decimal digits, from 0 to 9007199254740991.

Output Schema

NameRequiredDescriptionDefault
peopleYes
sharesYes
statusYes
versionYes
currencyYes
total_krwYes
review_urlYesOpens the bill result in the browser. The fragment contains the amount and people. Share only with the intended recipients.
source_urlYes
verification_urlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare read-only, non-destructive, closed-world behavior, so the safety profile is covered. The description adds real behavioral context beyond that: the result is a partition summing to the original amount and no money movement occurs, though the 'up to two groups' allocation logic is left unexplained.

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?

Three short sentences, front-loaded with the core action, with zero filler. The phrase 'up to two groups' is terse to the point of ambiguity about how a remainder is assigned, which slightly undercuts the otherwise tight structure.

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?

An output schema exists, so return shape needn't be re-explained, and every parameter is documented in the schema. The only shortfall for a math-utility tool is the unstated rule for distributing the remainder between the two groups.

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 100% with descriptive text for all four parameters, so the baseline is 3. The description still adds interpretive value by tying 'whole Korean won' to total_krw's digit-string format and 'as evenly as possible' to the people parameter, clarifying intent beyond field-level docs.

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 ('Divide a total in whole Korean won') plus the output shape ('up to two groups that sum to the original bill'), which lets an agent recognize this as an arithmetic splitter rather than a payment tool. Sibling names are unrelated utilities, so no differentiation burden applies.

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 clause 'No transfers or payment collection' usefully excludes a plausible misuse (treating this as a payment/request-for-money tool), but there is no positive guidance on when to pick this over doing the math elsewhere, and no alternatives are named.

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