Skip to main content
Glama

Money Gotchas Rough Math

How much of my balance is really mine?

safe_to_spend
Read-onlyIdempotent

Rough safe-to-spend number: takes the bank balance shown in the app and subtracts bills due before the next payday, card charges not yet paid off, and money already set aside. Use when someone asks how much they can actually spend until payday. Balance may be negative (overdrawn).

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": {
      "balance": "<balance>"
    },
    "name": "safe_to_spend"
  }
}

Input Schema

NameRequiredDescriptionDefault
balanceYesBalance the bank app shows, in US dollars. Negative if overdrawn.
set_asideNoMoney already set aside for something.
card_chargesNoCard charges not paid off yet.
bills_before_paydayNoBills due before the next payday (rent, phone, insurance).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already establish readOnly, idempotent, non-destructive, and closed-world behavior, so the description does not need to restate safety. It does add useful context beyond them: the result is a 'Rough' estimate and the balance may be negative when overdrawn. It does not say what form the result takes (a single dollar figure) or how precise the estimate is.

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?

Three short sentences with no waste: the computation is front-loaded, the usage trigger follows, and the overdraft edge case closes. Every sentence earns its place.

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 simple read-only calculation with no output schema and fully documented parameters, the definition is nearly complete. The only gap is that it never explicitly states the return value is a single dollar amount, though 'safe-to-spend number' strongly implies it.

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 schema already documents all four parameters. The description adds some value by spelling out the arithmetic relationship, confirming set_aside and card_charges are subtracted from balance. That is a modest supplement over the schema, consistent with the baseline when the schema carries the detail.

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 gives a specific verb and resource plus the exact computation: bank balance minus bills due before payday, unpaid card charges, and money set aside. This clearly distinguishes it from siblings like net_worth or credit_card_payoff, which are balance-sheet and payoff tools rather than a spendable-now figure.

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 states the triggering question explicitly: 'Use when someone asks how much they can actually spend until payday.' That gives a clear use context. It does not name when-not-to-use or an alternative tool, so it stops short of full routing guidance.

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