Skip to main content
Glama

PocketLedger MCP

Undo last transaction action

undo_last_transaction
Destructive

Undo the most recent supported transaction action, such as create, update, delete, or restore, within the undo window.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
operationNo
transaction_idNo
client_request_idNoOptional idempotency key. Omit for normal one-off calls.
confirmation_tokenNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

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

With destructiveHint=true in annotations, the description aligns by implying mutation ('undo') but adds no additional behavioral context. It omits details like whether the undo is reversible, what happens if no recent action exists, the size/time limits of the undo window, or whether confirmation is required. The description does not enhance understanding beyond the annotation.

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?

The description is a single sentence, making it concise and front-loaded. However, its brevity sacrifices detail: it contains only 15 words and does not leverage structure (e.g., bullet points) to cover essential aspects like parameters or behavior. It is minimally adequate but not well-structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool complexity (4 parameters, output schema, and 13 sibling tools), the description is incomplete. It does not explain what the undo window is, what the output contains, how parameters interact, or when the tool is applicable. The context signals (e.g., output schema exists) are not leveraged to reduce description burden.

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

Parameters2/5

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

Schema description coverage is low (25%), with only client_request_id described. The tool description adds no explanation for the four parameters: operation, transaction_id, client_request_id, and confirmation_token. The agent receives no guidance on their purpose or usage, forcing reliance on parameter names and enums alone.

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 the verb ('undo') and resource ('most recent supported transaction action'), listing example actions (create, update, delete, restore) and specifying the scope ('within the undo window'). It effectively distinguishes from sibling tools like delete_transaction or restore_transaction by focusing on the most recent action rather than a specific transaction.

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

Usage Guidelines2/5

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

The description provides no explicit guidance on when to use this tool versus alternatives, such as delete_transaction or restore_transaction. It does not mention prerequisites (e.g., an action must exist within the undo window) or caution against misuse, leaving the agent without clear decision criteria.

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.

TDQS

A3.7/5.0
Disambiguation4/5

Tools are mostly distinct with clear purposes. Potential confusion between get_report and get_summary or log_transaction and record_expense is mitigated by detailed descriptions explaining their specific use cases.

Naming Consistency5/5

All tools follow a consistent verb_noun pattern in snake_case (e.g., delete_transaction, get_report, parse_expense_text), making the set predictable and easy to navigate.

Tool Count5/5

With 13 tools covering CRUD operations, account management, and utility functions, the count is well-scoped for a personal expense tracking server without being excessive.

Completeness4/5

The tool surface covers essential expense lifecycle operations (create, read, update, delete, restore) and account settings, though a direct get_transaction by ID or bulk operations are missing but not critical.

Resources