Skip to main content
Glama

Restore Expense

restore_expense
Idempotent

Brings one of the signed-in person's own expenses back from Trash: the undo for deleting it. Only an expense they deleted themselves comes back.

Input Schema

NameRequiredDescriptionDefault
userIdNoNot needed when signed in: these tools act for the signed-in person, and any other ID is refused. Applies only to a workspace connection with no signed-in user, naming whose expenses these are.
expenseIdYesThe expense id, as an expense read or a logged expense gave it.

Output Schema

NameRequiredDescriptionDefault
restoredNo
expenseIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare non-readonly, idempotent, non-destructive. The description adds real behavioral value beyond them: the failed-restore condition ('only an expense they deleted themselves comes back') and the ownership constraint, which the agent needs to predict outcomes.

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 sentences, front-loaded with the action, no filler. Every clause carries information (scope, undo semantics, constraint).

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?

An output schema exists, so return values need not be explained. Combined with the annotations covering the safety profile, the description supplies everything needed: scope, ownership constraint, and failure behavior.

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 both parameters are already fully documented in the schema. The description only alludes to ownership scope and adds no expenseId syntax or userId detail, so the baseline 3 is correct.

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?

States a specific verb (restore) and resource (expense), plus the precise scope: one of the signed-in person's own expenses from Trash. It distinguishes itself from siblings like delete_expense and restore_task without needing the schema.

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?

Explicitly frames the tool as the inverse of deletion ('the undo for deleting it'), which tells the agent when to use it. It doesn't name a concrete alternative tool, but the usage context is clear.

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