Skip to main content
Glama
berthelius

Frihet MCP Server

Update Expense

update_expense
Idempotent

Update an existing expense by modifying only the specified fields. Change amount, category, date, vendor, or tax deductible status.

Instructions

Update an existing expense using PATCH semantics. Only the provided fields will be changed. Example: id='abc123', amount=75.00, category='travel' / Actualiza un gasto existente. Solo se modifican los campos proporcionados.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesExpense ID / ID del gasto
dateNoDate (YYYY-MM-DD) / Fecha
amountNoAmount in EUR / Importe
vendorNoVendor / Proveedor
categoryNoCategory / Categoria
descriptionNoDescription / Descripcion
taxDeductibleNoTax deductible / Deducible

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
dateNo
amountYes
vendorNo
categoryNo
createdAtNo
updatedAtNo
descriptionYes
taxDeductibleNo
Behavior4/5

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

Annotations indicate idempotentHint=true and destructiveHint=false; description adds explicit PATCH semantics and 'only the provided fields will be changed', which aligns and adds clarity beyond annotations.

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?

Two short English sentences plus Spanish translation. Front-loaded with core behavior, zero waste.

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?

With 7 parameters (1 required), output schema present, and annotations provided, the description covers update semantics and gives an example. Sufficient but could mention error handling or status constraints.

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?

Input schema has 100% coverage with descriptions. Description only mentions 'id', 'amount', 'category' in example, adding minimal extra meaning. Baseline 3 is appropriate.

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?

Description clearly states 'Update an existing expense using PATCH semantics' and gives a concrete example. Differentiates from sibling tools like create_expense, delete_expense, get_expense.

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?

Description explains PATCH partial update behavior and provides an example. Implicitly indicates when to use (update specific fields), but does not explicitly exclude scenarios like full replacement or creation.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/berthelius/frihet-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server