Skip to main content
Glama

Upsert project budget line

upsert_project_budget_line
Idempotent

The agreed budget for one cost category other than personnel — travel, equipment, subcontracting. Personnel comes from the per-person budgets instead and is not double-counted. Pass line_id to update, or project_id + category to create.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "upsert_project_budget_line"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelNo
notesNo
line_idNo
categoryNo
period_idNo
project_idNo
budget_amountNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnly=false, idempotent=true, destructive=false, so the safety profile is covered. The description adds genuinely useful business logic — personnel costs are not double-counted here — but says nothing about permissions, error behavior, or whether an update replaces or preserves unmentioned fields like label and notes.

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 with no filler: what the entity is, the exclusion rule, then the create/update keys. The most actionable information is placed last where it is easiest to act on.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter mutation tool with no output schema and no annotation-level detail on returns, the description covers the core semantics well. However, it leaves half the parameters unexplained and gives no hint of what the call returns or how partial updates behave, which an agent needs before invoking.

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 0%, so the description must carry the load. It does explain the two key discriminators (line_id vs project_id + category) and the meaning of category, but leaves budget_amount, period_id, label, and notes entirely undefined. The enum also lists 'personnel' even though the description says personnel is excluded, which an agent may find confusing.

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 defines the resource precisely: an agreed budget for one non-personnel cost category, with travel/equipment/subcontracting as examples. Combined with the final sentence on create-vs-update keys, an agent can tell what the tool writes. It stops short of a crisp verb-first statement of purpose, relying on the name for the 'upsert' action.

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 a concrete discriminator between the two modes ('Pass line_id to update, or project_id + category to create') and explicitly routes personnel costs elsewhere to the per-person budget tool. What's missing is an explicit named alternative and any note on when an update should be preferred over deleting and recreating.

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