Skip to main content
Glama

Create expenses

create_expenses

Batch-create 1–100 planned expenses in a box. Each row needs its own idempotencyKey (same namespace as create_expense). Optional matchingGroup per row. Hard-fails at the 100-expense plan cap. Counts as one write toward the rate limit.

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": {
      "budgetId": "<budgetId>",
      "boxId": "<boxId>",
      "expenses": "<expenses>"
    },
    "name": "create_expenses"
  }
}

Input Schema

NameRequiredDescriptionDefault
boxIdYes
budgetIdYes
expensesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedInput schema / properties / expenses / items / properties / frequency / description
      Added value: +"How often the bill is paid. biweekly = every 2 weeks; fourWeekly = every 4 weeks; everyNYears = every intervalYears years; once = a single payment on paymentAnchorDate (required), saved for monthly until then."
    • addedInput schema / properties / expenses / items / properties / frequency / enum
      Added value: +[
      +  "monthly",
      +  "bimonthly",
      +  "quarterly",
      +  "triannual",
      +  "semiannual",
      +  "annual",
      +  "weekly",
      +  "biweekly",
      +  "everyNYears",
      +  "fourWeekly",
      +  "once"
      +]
    • addedInput schema / properties / expenses / items / properties / intervalYears
      Added value: +{
      +  "description": "Years between payments when frequency is everyNYears.",
      +  "maximum": 10,
      +  "minimum": 2,
      +  "type": "integer"
      +}
    • addedInput schema / properties / expenses / items / properties / paymentAnchorDate
      Added value: +{
      +  "description": "A payment date in yyyy-MM-dd (up to 10 years in the past, or 10 years ahead); the schedule repeats from it. Empty string clears.",
      +  "type": "string"
      +}
    • addedInput schema / properties / expenses / items / properties / paymentCount
      Added value: +{
      +  "description": "Number of payments starting at paymentAnchorDate (e.g. 12 for 12x / parcelas, 360 for a 30-year mortgage); the server sets paymentEndDate. Not with paymentEndDate.",
      +  "maximum": 600,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • removedInput schema / properties / expenses / items / properties / paymentDay
      Removed value: -{
      -  "type": "number"
      -}
    • addedInput schema / properties / expenses / items / properties / paymentEndDate
      Added value: +{
      +  "description": "Last payment in yyyy-MM-dd (inclusive, up to 50 years ahead); after it the expense stops counting. Needs paymentAnchorDate. Empty string clears. Prefer paymentCount for instalments.",
      +  "type": "string"
      +}
    • addedInput schema / properties / expenses / items / properties / savingStartDate
      Added value: +{
      +  "description": "One-time only (frequency once): the day saving starts, yyyy-MM-dd, on or before paymentAnchorDate. Defaults to today; set it when the user already started saving earlier.",
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / expenses / items / properties / iconColor
      Added value: +{
      +  "enum": [
      +    "blue",
      +    "indigo",
      +    "purple",
      +    "pink",
      +    "red",
      +    "orange",
      +    "yellow",
      +    "green",
      +    "teal",
      +    "default"
      +  ],
      +  "type": "string"
      +}
  3. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Goes well beyond the annotations (readOnlyHint=false, destructiveHint=false) by disclosing the 100-expense plan cap hard-fail, that the call counts as one write toward the rate limit, and the idempotencyKey/matchingGroup conventions. It does not say whether a partial batch is atomic or what happens to rows that fail, which is the main remaining behavioral gap.

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, each carrying distinct information (scope, per-row key, optional field, failure and rate-limit behavior), with the core 'batch-create' statement front-loaded. No filler.

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?

No output schema exists and this is a mutation tool, but the description covers size limits, failure behavior, rate-limit cost, and the idempotency contract, which is most of what an agent needs. Missing are the meaning of budgetId/boxId and any note on atomicity or returned identifiers for the created rows.

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?

The description adds real meaning for the nested row fields: idempotencyKey is required per row and shares create_expense's namespace, and matchingGroup is optional per row. However, budgetId and boxId are never explained, and top-level schema description coverage is 0%, so the meaning of two of the three required parameters is left entirely implicit.

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 ('Batch-create 1–100 planned expenses in a box') plus the scope constraint (1–100, in a box). The phrase 'same namespace as create_expense' implicitly tells the agent how this differs from the single-item sibling without opening its 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?

Clearly positions the tool as the batch path and references create_expense for the single-item namespace. It does not explicitly say 'use create_expense for one row' or name exclusions, so it falls short of a full when/when-not statement.

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