Skip to main content
Glama

Edit budget line

update_budget_line
Destructive

Edits one line of the production's budget: set a new rate and/or quantity for the line with the given budget code (see get_budget for the codes). The line total, its section subtotal and the budget grand total are recomputed and saved on the production's plan, so get_budget and any later export show the edited numbers. Use it when the user wants to change what a line costs — a day rate, a fee, an allowance — or how many units it buys. Free on every account, including a guest session.

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": {
      "project_id": "<project_id>"
    },
    "name": "update_budget_line"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNoThe budget line code from get_budget — for example 1300.
rateNoThe new rate for the line, in the budget's currency. Omit to keep the current rate.
quantityNoThe new quantity for the line. Omit to keep the current quantity.
project_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare destructiveHint=true and readOnlyHint=false; the description goes well beyond them by disclosing the cascade effect: the line total, section subtotal and budget grand total are recomputed and persisted, and later exports reflect the new numbers. It also states the auth/entitlement position ('Free on every account, including a guest session'), which an agent needs before attempting the call.

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 tight sentences: action and scope first, side effects second, eligibility last. No filler, no restatement of the title, and each sentence contributes information an agent would otherwise have to guess.

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 destructive mutation with an output schema present, the description covers scope, side effects and access. The remaining gap is edge-case behavior — unknown or empty code (which defaults to ""), and invalid project_id — which an agent would want before firing a destructive write.

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 75% and already documents rate, quantity and the omit-to-keep behavior, but the description adds meaning the schema does not: that rate and quantity are supplied 'and/or' (either alone is a valid partial update) and that the code must come from get_budget. It does not elaborate on project_id, which is the one required parameter.

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 opens with a specific verb and resource: 'Edits one line of the production's budget.' It immediately names the exact fields being changed (rate and/or quantity) and keys the operation to a budget code retrieved via get_budget, so an agent can distinguish this from the read-only get_budget sibling without opening either schema.

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 gives concrete when-to-use criteria — 'change what a line costs — a day rate, a fee, an allowance — or how many units it buys' — and routes the agent to get_budget to obtain valid codes. There is no explicit when-not or prerequisite statement (e.g. what happens with an invalid code), so it falls just short of a 5.

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