Skip to main content
Glama
Beankeeper

Beankeeper

Official

fx_revalue

Revalue active foreign-currency accounts as of a date using a specified or last recorded exchange rate, posting gains or losses to a designated account without changing native balances.

Instructions

Revalue one or all active foreign-currency monetary accounts as of a date. Supply a gain/loss account and a decimal rate, or use the last recorded rate for each pair. Returns a receipt for each posting; native balances do not change.

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": {
      "company": "<company>",
      "fx_gain_loss_account": "<fx_gain_loss_account>",
      "as_of": "<as_of>"
    },
    "name": "fx_revalue"
  }
}

Input Schema

NameRequiredDescriptionDefault
rateNoPositive decimal functional major units per native major unit, e.g. 0.85
as_ofYesA real calendar date. Text input accepts the CLI's legacy unpadded dates.
accountNo
companyYes
fx_gain_loss_accountYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false, so the description must add the behavioral picture, and it does: it discloses that a receipt is returned per posting and, crucially, that native balances do not change. That is exactly the kind of consequence-of-invocation detail an agent needs for a mutation. It stops short of covering idempotency, permission requirements, or what happens when no prior rate exists.

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?

Three sentences, front-loaded with the action and scope, then the input choice, then the output/effect. Each sentence carries distinct information with no repetition of the tool name or filler.

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?

For a five-parameter mutation tool with no output schema, the description covers the action, inputs, return value (a receipt per posting), and the key side-effect guarantee. Missing are failure behavior when no recorded rate exists, and any reversibility or audit posture, though the returned receipts partially imply auditability.

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 only 40% schema coverage, the description compensates well: it clarifies that 'account' is optional ('one or all'), that 'rate' is a decimal alternative to the stored last rate, and that 'as_of' is a date anchor paired with 'fx_gain_loss_account'. Only 'company' is left without added meaning, which is a minor gap given its conventional scope.

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 ('Revalue') plus resource ('active foreign-currency monetary accounts') and explicitly scopes it to 'one or all' accounts as of a date. This is materially different from what a sibling like fx_post would do, and the agent can tell what the operation produces without opening 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 Guidelines3/5

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

The description gives in-tool usage guidance by presenting two modes: supply a gain/loss account plus a decimal rate, or rely on the last recorded rate per pair. It does not, however, say when to prefer this over alternatives such as fx_post, nor does it state any exclusions or prerequisites, leaving the routing decision implicit.

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