Skip to main content
Glama
tillbooks

tillbooks

Official

fx_revaluation_reverse

DestructiveIdempotent

Revert a posted period-end FX revaluation by atomically booking mirror entries and their next-day reversal, so positions and account 6949 net to zero while originals stay unchanged.

Instructions

Revert a posted FX revaluation run (D129 Q2): books the mirror of the revaluation entry dated the period end (source fx) plus its own next-day reversal, atomically, so every position and account 6949 net to zero on both dates and nothing is edited. runId is the run post_fx_revaluation returned. Refuses not_posted for a run that posted nothing, already_reversed, later_run_exists naming the later period end whose run still stands (revert newest first), and period_locked for a locked period. Idempotent on idempotencyKey. CONSEQUENCE: Reverts the period-end currency revaluation with mirror entries, so every account nets to zero. The original entries stay visible beside them; this revert can't be reverted again.

Input Schema

NameRequiredDescriptionDefault
runIdYes
workspaceIdYes
idempotencyKeyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the idempotentHint/destructiveHint annotations: discloses the mirror-entry accounting mechanics, atomicity, the fact that original entries remain visible, refusal codes, and that the revert is terminal. Annotations say destructive but never explain what is written — the description does, consistently.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the operation, then behavior, then refusals, then consequence — logical and every clause carries information. Slightly dense with backticked codes and parentheticals, but nothing is padding.

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?

For a destructive, non-reversible, no-output-schema mutation this covers safety profile, required inputs, refusal taxonomy, idempotency, and accounting consequence. An agent can decide and call it correctly without further lookup.

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

Parameters4/5

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

With 0% schema description coverage the description must carry parameter meaning, and it does for runId (source run) and idempotencyKey (dedup key), plus defines the failure semantics tied to them. workspaceId is left implicit, which is the only gap.

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 and resource ('Revert a posted FX revaluation run') and adds the document/category reference (D129 Q2) so the operation is unambiguous. It is clearly distinguishable from post_fx_revaluation, which it names as the producing sibling.

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

Usage Guidelines5/5

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

Explicitly ties input to the sibling ('runId is the run post_fx_revaluation returned'), states the ordering rule ('revert newest first') via later_run_exists, and enumerates the exact refusal states that mean the agent should not call it.

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

Deploy Server

Other Tools