Skip to main content
Glama

Hundo

propose_budget_upsert

Propose creating a new budget or updating an existing one. For create: provide name, allocated, currency. For update: provide envelopeId, allocated; the name and currency are kept from the existing budget. A budget resets weekly or monthly (period, default monthly) and tracks spending one of two ways: trackingMode 'category' counts the linked categories, and ONE budget can cover MANY: pass every category in categoryIds (e.g. rent + groceries + transport + utilities for a single 'Needs' budget); trackingMode 'manual' links no categories and the user tracks it by hand. On update, categoryIds replaces the current list, so pass the whole list. Look category ids up first and never invent them. A budget can also count the transfers INTO chosen accounts (transferAccountIds), e.g. a mortgage paid by transfer counts toward 'Housing'; the preview gives a warning for each account that can count the same money twice - tell the user before they confirm. Returns a proposal id; to record it, call the confirm_proposal tool with the returned proposalId after the user approves (there is no UI button or proposal card to click in this context).

MCP note: this tool only CREATES a pending proposal; nothing is recorded until confirm_proposal is called.

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": {
      "allocated": "<allocated>",
      "currency": "<currency>"
    },
    "name": "propose_budget_upsert"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoRequired when creating a new budget.
periodNoHow often the allocation resets. Defaults to 'monthly' on create; left unchanged on update unless you pass it.
currencyYes
allocatedYesAllocation in MAJOR units (the displayed amount, e.g. 500.00 for $500.00, 5000000 for Rp 5,000,000). The server scales to storage units; never pre-multiply by 100.
categoryIdNoShorthand for a categoryIds list of one. It is NOT an 'add this one' field: on update it replaces the budget's whole category list, exactly as categoryIds does, so a budget that already covers several would be left with just this one. To add a category to an existing budget, read its current list and pass all of them in categoryIds.
envelopeIdNoId of an existing budget to update; omit to create a new budget.
categoryIdsNoEvery category this budget tracks, e.g. rent + groceries + transport + utilities for one 'Needs' budget. On update this REPLACES the budget's current categories, so pass the full list you want, not just the new ones. Look ids up first; never invent them.
trackingModeNo'category' counts spending from the linked categories automatically; 'manual' counts nothing and the user records progress by hand. Omit on create and it follows whether you passed categories.
editsProposalIdNoId of an existing pending proposal to update in place. Pass this when the user asks to modify a proposal you previously made (e.g. 'make it $50 instead'). Look up current ids with listPendingProposals if you're unsure. Omit when proposing something new.
includeInvestmentsNoCount asset purchases (buys) toward this budget's spending alongside expenses. Defaults to false on create; left unchanged on update unless you pass it.
transferAccountIdsNoAccounts whose INCOMING transfers count toward this budget's spending, e.g. the mortgage account for a 'Housing' budget when the user pays the mortgage by transfer, or a savings account for a savings budget. The transfer stays a transfer: balances, net worth and expense totals do not change. On update this REPLACES the current list (pass [] to clear it); omit it to keep the list. Do not add a credit card unless the user asks for it by name: its purchases are already expenses, so its payments would count twice. Look account ids up first; never invent them.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / transferAccountIds
      Added value: +{
      +  "description": "Accounts whose INCOMING transfers count toward this budget's spending, e.g. the mortgage account for a 'Housing' budget when the user pays the mortgage by transfer, or a savings account for a savings budget. The transfer stays a transfer: balances, net worth and expense totals do not change. On update this REPLACES the current list (pass [] to clear it); omit it to keep the list. Do not add a credit card unless the user asks for it by name: its purchases are already expenses, so its payments would count twice. Look account ids up first; never invent them.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  2. Changed5 schema fields changed
    • addedInput schema / properties / categoryId / description
      Added value: +"Shorthand for a categoryIds list of one. It is NOT an 'add this one' field: on update it replaces the budget's whole category list, exactly as categoryIds does, so a budget that already covers several would be left with just this one. To add a category to an existing budget, read its current list and pass all of them in categoryIds."
    • addedInput schema / properties / categoryIds
      Added value: +{
      +  "description": "Every category this budget tracks, e.g. rent + groceries + transport + utilities for one 'Needs' budget. On update this REPLACES the budget's current categories, so pass the full list you want, not just the new ones. Look ids up first; never invent them.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / includeInvestments
      Added value: +{
      +  "description": "Count asset purchases (buys) toward this budget's spending alongside expenses. Defaults to false on create; left unchanged on update unless you pass it.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / period
      Added value: +{
      +  "description": "How often the allocation resets. Defaults to 'monthly' on create; left unchanged on update unless you pass it.",
      +  "enum": [
      +    "weekly",
      +    "monthly"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / trackingMode
      Added value: +{
      +  "description": "'category' counts spending from the linked categories automatically; 'manual' counts nothing and the user records progress by hand. Omit on create and it follows whether you passed categories.",
      +  "enum": [
      +    "category",
      +    "manual"
      +  ],
      +  "type": "string"
      +}
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare the generic non-read-only, non-destructive, non-idempotent profile; the description adds the critical fact that this tool writes nothing but a pending proposal with no clickable UI card in this context. It also discloses the replacement semantics of categoryIds/categoryId/transferAccountIds on update, the default-follows-categories behavior of trackingMode, and the double-counting preview warnings the agent must relay to the user.

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?

It is long but front-loaded, leading with create/update modes before the tracking-mode and transfer details. The trailing MCP note restates the proposal-only point already made in the sentence about returning a proposalId, which is mild redundancy but reinforces a critical constraint.

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?

For an 11-parameter mutation tool with no output schema, it covers the return value (a proposal id), the confirmation workflow, defaults for period/trackingMode/includeInvestments, and replacement behavior for list fields. An agent has everything needed to call it correctly and follow up.

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 91%, so the baseline is 3, and the description still adds genuine value by grouping parameters by mode (create vs update) and clarifying that categoryId is not an additive field. Minor loss: it does not add anything about includeInvestments defaults beyond what the schema already says.

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 first sentence names a specific verb (propose) plus resource (budget) and covers both create and update modes, which is exactly the ambiguity an agent needs resolved. It also names confirm_proposal as the follow-up, so it is distinguishable from the sibling that actually records changes.

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?

Gives explicit conditional routing: create requires name/allocated/currency, update requires envelopeId/allocated, and editsProposalId is for revising a previously made proposal. It also states the hard prerequisite that nothing is recorded until confirm_proposal is called after user approval, and warns to look up category ids first and never invent them.

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