Skip to main content
Glama
Frihet-io

Frihet MCP Server

Update Expense

update_expense
Idempotent

Modify existing expenses by updating only specified fields such as amount, category, or date without affecting other data.

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
descriptionNoDescription / Descripcion
amountNoAmount in EUR / Importe
categoryNoCategory / Categoria
dateNoDate (YYYY-MM-DD) / Fecha
vendorNoVendor / Proveedor
taxDeductibleNoTax deductible / Deducible

Output Schema

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

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

Annotations already declare idempotentHint=true and destructiveHint=false. The description adds 'PATCH semantics' and 'only provided fields will be changed', which is consistent but adds minimal extra behavioral context beyond what annotations provide.

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?

The description is two sentences, includes a concrete example, and is front-loaded with the key purpose and semantics. Every word contributes, and the bilingual aspect is necessary for the audience.

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?

Given the presence of an output schema and full parameter descriptions, the description is sufficiently complete. It covers the core behavior and includes an example, though it does not mention prerequisites or failure scenarios.

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 coverage is 100%, so the input schema already describes all parameters. The description provides an example (id, amount, category) but adds no additional semantic detail beyond the schema.

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?

The description clearly states 'Update an existing expense using PATCH semantics', specifying the verb (update), resource (expense), and behavior (partial update). This distinguishes it from siblings like create_expense, delete_expense, and 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?

The description explicitly notes that only provided fields are changed, implying use for partial modifications. It does not directly contrast with alternatives, but the context of sibling tools makes it clear this is for updating specific fields rather than replacing the whole resource.

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/Frihet-io/frihet-mcp'

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