Skip to main content
Glama

Split a group gift

gift_budget
Read-onlyIdempotent

How much each person gives toward a group gift: divide the cost by those who will actually pay, round down; the organiser adds the rest. Or, from a per-person amount, the total budget. Pass exactly one of giftCost or perPerson. Amounts are in the service's currency.

Input Schema

NameRequiredDescriptionDefault
payersNoHow many people will actually pay, 2 to 500.
giftCostNoTotal gift cost, in the service's currency.
perPersonNoAmount each person gives.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already establish this as a safe, idempotent, non-destructive read. The description adds useful computation details: rounding down, organizer covering the remainder, currency, and mutual exclusivity of the two amount inputs.

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?

The description is compact and front-loaded, presenting the main split behavior first and the alternative mode second. Every sentence carries useful information with no redundant restatement.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 still explains what each mode returns: either the per-person contribution after rounding or the total budget. That is sufficient for a low-complexity calculation tool whose annotations cover safety.

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%, so the schema already documents the three parameters. The description adds the important exactly-one constraint between giftCost and perPerson and clarifies how payers affects the division, going beyond the schema text.

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?

The description states the resource and both operations precisely: splitting a group gift per payer with rounding, or deriving total budget from a per-person amount. An agent can identify the calculation without inspecting 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?

It clearly says to pass exactly one of giftCost or perPerson, which resolves the main invocation ambiguity. It does not name alternatives, but the sibling tools are unrelated, so there is no meaningful routing choice to explain.

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.