Skip to main content
Glama

Preview revaluation

preview_revaluation
Read-only

Preview revaluing every foreign balance at a day's closing rate: foreign-currency bank accounts (their transactions and journals), open foreign invoices and bills, and journal lines on rand accounts that name a currency. Each shows its foreign balance, carried base value, the rate and its source (override, typed, old-package, own or feed) and the adjustment. Reads only; post it on the owner's word.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "date": "<date>"
    },
    "name": "preview_revaluation"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesThe day to revalue at (yyyy-MM-dd); open documents' revaluation is reversed the next day
ratesNoBank account id -> closing rate override
documentratesNoCurrency code -> closing rate override for open invoices and bills, in foreign units per one base unit

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=true, and the description reinforces this with 'Reads only', so there is no contradiction. Beyond the annotation it discloses what each row contains (foreign balance, carried base value, rate and its source, adjustment) and mentions the rate provenance categories (override, typed, old-package, own, feed), which is real behavioral context an annotation cannot convey.

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, both load-bearing: the first scopes the operation and the second states safety and the escalation path. The scope enumeration is front-loaded and there is no filler or restatement of the tool name.

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?

With no output schema, the description carries the burden of describing the return shape and does so adequately by listing the per-item fields shown. Combined with the schema's note that open documents' revaluation reverses the next day, an agent has everything needed to call this correctly and interpret the result.

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?

Schema description coverage is 100%, so the baseline is 3, but the description adds meaning beyond the schema by listing 'override' as one of the rate sources the output will label — implying that supplying an overriding rate changes the source attribution in the preview. It still doesn't explain precedence between the two override maps, which the schema also leaves to field-level descriptions.

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 opens with a specific verb+resource ('Preview revaluing every foreign balance at a day's closing rate') and then enumerates exactly which balances are in scope: foreign bank accounts, open foreign invoices and bills, and journal lines on rand accounts naming a currency. The 'Reads only; post it...' clause contrasts it with the posting counterpart, so an agent can tell it apart from the write-side sibling without opening either 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?

It gives clear context for use: this is the non-mutating preview, and posting follows 'on the owner's word', which conveys both the sequencing and the approval prerequisite. It stops short of naming the posting tool explicitly, so the routing guidance is implied rather than spelled out.

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