Skip to main content
Glama

Get Budget

get_budget
Read-only

Fetch a single budget definition by id (GET /api/budgets/{budget_id}). Returns the budget: name, amount, currency, period, startDate/endDate, thresholdPcts, its delivery (channels + emails; notificationChannelIds in detailed), and scope. Use response_format="concise" (default) for key fields, "detailed" for every field (incl. created/updated metadata). For current spend vs this budget, use get_budget_status. Read-only. Example: { "budget_id": "b1a2c3d4-..." }.

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": {
      "budget_id": "<budget_id>"
    },
    "name": "get_budget"
  }
}

Input Schema

NameRequiredDescriptionDefault
budget_idYesThe id of the budget to fetch (substituted into GET /api/budgets/{budgetId}). Required.
response_formatNoconcise = key fields only (default, lower token cost); detailed = the full parsed payload.concise

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, and the description reinforces read-only while adding substantive context the annotations lack: the exact field set returned, how detailed mode differs (incl. created/updated metadata), and the token-cost tradeoff. It does not mention auth requirements or error cases, which keeps it short of a 5.

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?

Purpose and endpoint are front-loaded, followed by return contents, format choice, and the alternative — a logical order with no filler. Minor waste in restating 'Read-only' already covered by annotations and a slightly run-on field enumeration.

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 compensates by enumerating the returned fields (name, amount, currency, period, dates, thresholdPcts, delivery, scope), so an agent knows what it will get. For a 2-parameter read tool this is fully sufficient.

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 baseline is 3; the description goes beyond it by clarifying what detailed mode actually adds ('created/updated metadata') and providing a concrete budget_id example value, which the schema only describes generically.

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?

States a specific verb and resource ('Fetch a single budget definition by id') plus the backing endpoint GET /api/budgets/{budget_id}, which distinguishes it clearly from the list-oriented get_budgets and the status-oriented get_budget_status.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly routes the agent: 'For current spend vs this budget, use get_budget_status,' and explains when to pick response_format="concise" (default, key fields) versus "detailed" (every field, token cost). No inference required.

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