Skip to main content
Glama
LamPyrid
by RadCod3

Set Budget Limit

set_budget_limit
Idempotent

Set or update the spendable amount for an existing budget over a chosen period, defaulting to the current month when no dates are provided.

Instructions

Set the spendable amount for an existing budget for a specific period.

The period defaults to the current month if no dates are given. Creates the limit, or updates it if one already exists for that period (so calling it again simply adjusts the amount). Identify the budget by budget_id or budget_name.

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": "set_budget_limit"
  }
}

Input Schema

NameRequiredDescriptionDefault
reqYesRequest to set (create or update) a budget limit for a period.

Output Schema

NameRequiredDescriptionDefault
idYesUnique identifier for the budget limit
notesNoOptional notes attached to this budget limit
spentNoAmount already spent against this limit in the period (positive number)
amountYesAmount allocated to the budget for this period
end_dateYesLast day this limit applies to (inclusive)
budget_idYesID of the budget this limit belongs to
start_dateYesFirst day this limit applies to (inclusive)
currency_codeNoCurrency code (ISO 4217) for the amount

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly=false, idempotent=true and destructive=false; the description adds real value on top by explaining the upsert semantics ('creates the limit, or updates it if one already exists') and the repeat-call behavior. It stops short of mentioning permissions, validation constraints such as amount > 0, or effects on other periods.

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?

Four short sentences, front-loaded with the action, then defaults, then upsert behavior, then identification. No filler or repetition of annotation content.

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?

Returns are covered by an output schema and parameters are fully documented in the schema, so the description only had to establish intent, period defaults, and upsert behavior, all of which it does. Slightly incomplete in that it does not warn about what happens to limits in other periods or note whether updates are additive versus replacing.

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% and each nested field already documents defaults, formats, and the budget_id precedence rule, so the description only needs to reinforce. It restates the budget_id/budget_name choice without adding the tie-break or the date-pairing rule that the schema provides, so it adds little beyond the schema baseline.

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?

States a specific verb and resource ('Set the spendable amount for an existing budget for a specific period') and scopes it to existing budgets, which distinguishes it from creation-oriented siblings like create_budget. It does not explicitly name the competing sibling delete_budget_limit, so differentiation stops short of the top band.

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?

Gives clear context for when to use it: allocating a spendable amount to an existing budget for a period, with the default period spelled out. It does not state exclusions or point at alternatives for related tasks, so it sits just below the explicit when/when-not band.

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