Skip to main content
Glama
LamPyrid
by RadCod3

Get Budget Spending

get_budget_spending
Read-onlyIdempotent

Analyze spending against a budget to return amount spent, remaining budget, and percentage used, enabling budget monitoring and overspending alerts.

Instructions

Analyze spending against a budget.

Includes amount spent, remaining budget, and percentage used. Essential for budget monitoring and overspending alerts.

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": {
      "req": "<req>"
    },
    "name": "get_budget_spending"
  }
}

Input Schema

NameRequiredDescriptionDefault
reqYesRequest for getting budget spending data.

Output Schema

NameRequiredDescriptionDefault
spentYesTotal amount spent from this budget in the specified period
budgetedNoAmount allocated to this budget for the period
budget_idYesUnique identifier of the budget
remainingNoMoney left in this budget (budgeted minus spent)
budget_nameYesDisplay name of the budget
percentage_spentNoPercentage of allocated budget used (0-100+, can exceed 100 if overspent)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and openWorldHint=false, so safety and repeatability are covered by structured data. The description adds that the response is an analytical rollup rather than raw records, but says nothing about permission requirements, how transactions are attributed to the budget, or behavior when start_date/end_date are omitted.

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 short sentences with the core purpose front-loaded; nothing is redundant. The closing 'Essential for budget monitoring and overspending alerts' leans promotional and could have carried routing information instead.

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?

This is a simple read-only aggregation tool with a fully documented single parameter and an output schema, so the description needn't explain return structure. What remains missing is only the sibling boundary, which is a modest gap given the tool's low complexity.

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 description coverage is 100% and the single nested request object documents budget_id, start_date, and end_date including inclusive semantics, so the schema carries the parameter burden. The description adds no meaning beyond that — notably it never clarifies the default period when dates are null, which is the one ambiguity the schema leaves.

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?

The description states a specific verb and resource: analyze spending against a budget, and names the three derived figures it returns (spent, remaining, percentage used). It does not distinguish itself from plausible siblings such as get_budget_summary or get_available_budget, so an agent must infer the boundary from names alone.

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 phrase 'Essential for budget monitoring and overspending alerts' implies the monitoring use case but never states when to pick this over a budget summary or available-budget tool, nor any precondition such as budget_id needing to exist. Usage is only inferable.

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