Skip to main content
Glama

Create expense

figa_create_expense
Idempotent

Create a one-time or recurring expense. categoryInput omitted or null means no category; otherwise it accepts an existing ID or local draft with name and parentId/parentName. Drafts create/reuse local siblings only; identical names under other parents or shared scope are distinct. tagIds assigns existing tags; mutually exclusive tagInputs accepts IDs or {name} drafts. Amounts are minor units. Shapes: one-time fixed (amount, optional expenseDate defaulting to now); recurring fixed (amount and schedule, with dates from schedule.startDate and expenseDate ignored); ordinary variable (amountMode variable, daily/weekly/monthly/quarterly/yearly schedule, amount null or starting estimate, optional forecastStrategy; manual requires an amount); service (amountMode variable, amount null, currency and serviceCalculation, no schedule). acknowledgePastPaymentDate has no effect. New expenses start Unpaid unless markPaid is true. Fixed-only markPaid atomically pays the one-time expense or just the first recurring occurrence, with paymentDate in Unix seconds defaulting to now; a recurring response describes the series rather than the Paid occurrence. Variable bills and services reject markPaid. One-time fixed expenses may join an active expense group (manual series in the API) with manualSeriesId or create one with newManualSeries {name}, never both or alongside schedule/variable mode. An archived group returns MANUAL_SERIES_ARCHIVED. A new group takes the expense's final category, recipient, tags and currency as defaults; existing group defaults never overwrite supplied expense fields. schedule.dueWindowEnd defines weekly/monthly/quarterly/yearly windows ending on a weekday (0 Sunday), day of month, quarter month (1–3), or year month (1–12). Quarterly/yearly windows start on dayOfMonth 1. For example, yearly monthOfYear 10, dayOfMonth 1, dueWindowEnd 11 spans October 1–November 30. A window in progress on startDate starts the series; reads expose dueBy. This write requires explicit user intent. A UUID requestId identifies one intended operation; identical retries retain the same ID and payload. A missing response or IDEMPOTENCY_OUTCOME_UNKNOWN, IDEMPOTENT_REQUEST_IN_PROGRESS or INTERNAL_SERVER_ERROR leaves the outcome uncertain, not a confirmed failure. A new ID can duplicate an uncertain write. Corrected inputs after a definite validation or business refusal constitute a new operation. The transport response cache lasts 24 hours; longer replay guarantees are stated above.

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": {
      "workspaceId": "<workspaceId>",
      "requestId": "<requestId>",
      "expense": "<expense>"
    },
    "name": "figa_create_expense"
  }
}

Input Schema

NameRequiredDescriptionDefault
expenseYesThe expense to create: name, amount in minor units or null, currency, optional date, schedule, category, recipient, tags, amount mode and payment fields, in one of the shapes described above.
requestIdYesCaller-generated UUID identifying this one intended write. A retry of the same write reuses the ID and payload; the same ID with different input returns IDEMPOTENCY_KEY_MISMATCH.
workspaceIdYesID of a workspace selected for this connection. Other workspaces are rejected.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / expense / description
      Added value: +"The expense to create: name, amount in minor units or null, currency, optional date, schedule, category, recipient, tags, amount mode and payment fields, in one of the shapes described above."
    • addedInput schema / properties / requestId / description
      Added value: +"Caller-generated UUID identifying this one intended write. A retry of the same write reuses the ID and payload; the same ID with different input returns IDEMPOTENCY_KEY_MISMATCH."
    • addedInput schema / properties / workspaceId / description
      Added value: +"ID of a workspace selected for this connection. Other workspaces are rejected."
  2. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations only tell us it is a non-destructive idempotent write. The description goes well beyond that: markPaid atomicity and its rejection for variable/service bills, the MANUAL_SERIES_ARCHIVED error, defaulting rules for new group membership, dueBy window computation, and an extensive idempotency/uncertainty model including error codes and 24-hour cache semantics. This is unusually rich behavioral context that the annotations do not carry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded with the core action and shape enumeration, but it devolves into a very long, densely packed run of sentences with heavy clause chaining (e.g., the markPaid and manual-series passages). Most sentences carry real information, but the density makes it hard to scan and some phrasing is repetitive.

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 a highly complex nested-schema tool with no output schema, the description covers all the shapes, payment behavior, group membership rules, window semantics, and idempotency failure modes an agent would need to call it correctly and interpret uncertain outcomes. Nothing material for correct invocation appears to be missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is already 100%, so baseline is 3, but the description adds shconditional meaning the schema cannot express: mutual exclusivity of tagIds vs tagInputs, categoryInput null-vs-draft resolution, amount-in-minor-units, markPaid vs schedule/variable exclusions, and the exact shape requirements for each mode. This meaningfully compensates beyond structured fields.

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 one-time or recurring expense') and then enumerates the distinct shapes (one-time fixed, recurring fixed, variable, service), giving a clear sense of what the tool produces. It does not name or contrast any sibling tool, so an agent must infer that bulk-create, update, and manual-series-add siblings are different operations from the create semantics alone.

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

Usage Guidelines3/5

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

The description gives strong internal guidance on which shape to use and what each shape requires, and states 'This write requires explicit user intent.' However it never explicitly says when to prefer this over figa_bulk_create_expenses, figa_update_expense, or figa_add_expense_to_manual_series, so the alternative-choice guidance is only implied.

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