Skip to main content
Glama

evaluate_budget

Calculates total spend_intent in a window and compares to a limit, returning total_spent and within_budget. Empty ledger results in zero spent and within budget.

Instructions

Sum spend_intent amounts recorded within the last window_days and compare against limit_usd. Never raises -- an empty ledger reads as total_spent_usd=0.0, within_budget=True.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limit_usdYes
window_daysNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses that the tool never raises exceptions and that an empty ledger yields total_spent_usd=0.0 and within_budget=True, which is valuable non-obvious behavior. However, it does not discuss other potential behaviors like rounding or timezone handling, so a 4 is appropriate.

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 two sentences with no redundant words. The first sentence states the core operation, and the second adds a critical edge-case behavior. It is well-structured and front-loaded, earning a 5.

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?

The tool is simple with two parameters and an output schema. The description covers the operation and a key edge case. Since an output schema exists, it need not describe return values in detail. However, it lacks explicit usage context (when to use vs. alternatives), which is a minor gap. Thus a 4.

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 description coverage is 0%, so the description must explain parameters. It does explain that window_days is a time window and limit_usd is a comparison threshold, adding meaning beyond the bare schema. It does not specify units or constraints beyond what the schema already provides (e.g., default for window_days). Given the partial explanation, a 4 is suitable.

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 uses a specific verb 'Sum' and identifies the resources 'spend_intent amounts' and 'limit_usd', making the tool's function unambiguous. It clearly differs from sibling tools such as record_spend_intent (which records) and classify_action (which classifies), so it earns a 5.

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 description does not explicitly state when to use this tool versus alternatives, nor does it mention exclusions or prerequisites. It only implies usage for budget evaluation, so it receives a 3 for implied usage rather than explicit guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jaimenbell/rails-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server