Skip to main content
Glama

Create expense

create_expense

Create a planned expense in a box (max 100 per box). Optional matchingGroup for transaction matching; optional iconColor (icon circle color). Name/description ≤100 chars; amount 0…1e6.

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>",
      "name": "<name>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "create_expense"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
boxIdYes
amountNo
budgetIdYes
currencyNo
frequencyNoHow 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.
iconColorNo
descriptionNo
paymentCountNoNumber of payments starting at paymentAnchorDate (e.g. 12 for 12x / parcelas, 360 for a 30-year mortgage); the server sets paymentEndDate. Not with paymentEndDate.
intervalYearsNoYears between payments when frequency is everyNYears.
matchingGroupNo
idempotencyKeyYes
paymentEndDateNoLast 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.
savingStartDateNoOne-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.
paymentAnchorDateNoA 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedInput schema / 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 / frequency / enum
      Added value: +[
      +  "monthly",
      +  "bimonthly",
      +  "quarterly",
      +  "triannual",
      +  "semiannual",
      +  "annual",
      +  "weekly",
      +  "biweekly",
      +  "everyNYears",
      +  "fourWeekly",
      +  "once"
      +]
    • addedInput schema / properties / intervalYears
      Added value: +{
      +  "description": "Years between payments when frequency is everyNYears.",
      +  "maximum": 10,
      +  "minimum": 2,
      +  "type": "integer"
      +}
    • addedInput schema / 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 / 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 / paymentDay
      Removed value: -{
      -  "type": "number"
      -}
    • addedInput schema / 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 / 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 / iconColor
      Added value: +{
      +  "enum": [
      +    "blue",
      +    "indigo",
      +    "purple",
      +    "pink",
      +    "red",
      +    "orange",
      +    "yellow",
      +    "green",
      +    "teal",
      +    "default"
      +  ],
      +  "type": "string"
      +}
  3. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare that this is a non-destructive write in a closed world, so the safety profile is covered. The description adds a genuine behavioral limit ('max 100 per box') and value bounds, but it never explains the required idempotencyKey (deduplication semantics), what happens on hitting the 100 cap, or what a successful creation returns.

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?

Three tight sentences with the core action first, then optional-parameter notes, then value limits. No filler, though the semicolon-chained parameter notes read as a fragment list rather than a structured explanation.

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 15-parameter mutation with 40% schema coverage and no output schema, the description covers only a fraction of the surface. The scheduling parameters (frequency, paymentCount, paymentAnchorDate, savingStartDate) are documented in the schema but receive no narrative, and the required idempotencyKey is entirely unexplained.

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 description coverage is only 40%, so the description must compensate; it does add meaning for matchingGroup, iconColor, and length/amount bounds for name, description and amount. However, it is silent on several of the 15 parameters, most notably the required idempotencyKey and currency, leaving key semantics to the sparse schema.

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 opens with a specific verb and resource: 'Create a planned expense in a box', and adds a scope constraint (max 100 per box). It implicitly separates itself from bulk creation (create_expenses) and transaction creation by calling the object a 'planned expense in a box', though it never names a sibling explicitly.

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

Usage Guidelines2/5

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

There is no statement of when to use this tool versus create_expenses, create_transaction, duplicate_expense, or update_expense, and no prerequisites are given. The only usage-adjacent hint is 'Optional matchingGroup for transaction matching', which explains a parameter rather than tool selection.

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