Register and Correct Money Data with Agents

Automatic translation. View original

The Money MCP allows financial changes with your user's permissions. The agent must read the current data, show the proposal, obtain confirmation, and verify the saved result.

Confirmation is the responsibility of the client or agent. The server executes the writing tool when it receives a valid call; it does not store prior approval.

Available tools

Object or action Tools
Movements create_movement, update_movement, delete_movement
Prorate or subdivide prorate_movement, subdivide_movement
Review or revert a division get_split, revert_split
Financial accounts create_account, update_account
Configured categories and budgets create_category, update_category
Recurrences create_recurrent_movement, update_recurrent_movement, delete_recurrent_movement
Plans create_plan, update_plan
Automation rules create_automation_rule, update_automation_rule

Flow the agent must follow

  1. Consult the authorized businesses and select the indicated one.
  2. Read the affected records and resolve relationships within the same business.
  3. Show business, record, account, amount, currency, dates, and fields that will change.
  4. Obtain confirmation for that proposal.
  5. Generate a UUID request_id for the operation.
  6. Execute the tool with the requested fields.
  7. Query again and check the result.

To update, delete, prorate or subdivide, the agent must send expected_updated_at with the last updated_at read.

If an account or category does not exist, the agent must request authorization before creating it. It must not create related records as an implicit effect of another request.

Example: register an expense

Prepare an expense of ARS 25,000 in the Banco account, Alquiler category, dated November 5, 2026, with a November report. Show me the proposal before saving it.

The agent must also confirm the movement's status. The accepted statuses are pending, created and settled.

After resolving the IDs and receiving confirmation, you can call create_movement:

{
  "name": "create_movement",
  "arguments": {
    "business_id": 42,
    "request_id": "0690c9a7-0cbd-4de0-9f25-fb75117a06d8",
    "type": "Debit",
    "state": "created",
    "amount_cents": 2500000,
    "source_account_id": 123,
    "category_id": 456,
    "description": "Alquiler",
    "movement_at": "2026-11-05",
    "report_on": "2026-11-01"
  }
}

This example uses fictitious IDs. Replace them with IDs consulted in the authorized business and generate a new UUID for each real operation.

To correct an existing expense, use update_movement. Do not create another movement to replace a correction of amount, date, or category.

Avoiding duplicates and overwrites

request_id allows retrying a write without duplicating it. If the response is lost, check if it was saved and reuse the same UUID with the same arguments.

A different operation needs another UUID. Do not retry an uncertain response with a new UUID without verifying the previous result.

expected_updated_at avoids overwriting concurrent changes. If you receive conflict, read the record again and check what changed. Request new confirmation if the proposal changes.

Deleting a movement or a recurrence

delete_movement performs a logical deletion: the movement no longer appears in the usual queries and keeps its history. Verify that get_movement returns not_found and show the user the deletion date.

The MCP does not allow restoring deleted movements independently.

delete_recurrent_movement permanently deletes the recurrence rule and stops future generations. It keeps the movements already generated. Verify the result with get_recurrent_movement.

Creating or modifying a recurrence can generate the current month's movement when its rules allow. Include that effect in the proposal.

Prorate, subdivide, and revert

prorate_movement replace a movement with installments in successive reporting months. The first keeps the original month. The remaining cents are assigned to the last installment.

subdivide_movement replaces the movement with explicit parts. Their amounts must sum exactly to the original.

These operations require a complete proposal. After executing them, verify the resulting movements with get_split.

To revert, consult get_split and check that revertible is true. Show the original movement to be restored and all resulting movements that will be physically deleted.

revert_split requires the exact list of IDs and versions in expected_movements. Do not omit results or modify versions to avoid a conflict.

Category budgets

Configured budgets use monthly_budget_cents and monthly_budget_currency. The currency can differ from the business's base currency.

In an update, sending only the amount keeps the existing currency. To remove the budget, send monthly_budget_cents: null without currency.

There cannot be overlapping budgets between a category and its ancestors or descendants.

Errors and final verification

In case of validation_failed, correct the data and review the proposal. In case of forbidden, check the permissions without trying IDs from other businesses. In case of frequency limits, respect the indicated interval.

A successful write response must be followed by a read. The agent must report what was saved, in which business, and how the result was verified.

Back to MCP de Money

Contact support