Skip to main content
Glama

Refresh reconciliations

refresh-reconciliations
DestructiveIdempotent

Run every reconciliation that applies at a period end and record each result on its block. A ledger synced from QuickBooks is compared with QuickBooks' own trial balance, on one block for the whole ledger. Each asset account a schedule carries a balance on is compared with what its schedules say it holds, on a block of its own. Each account with a statement covering the period (record-statement-balance; the latest within its statement cycle) is compared with that balance. A block reconciles for the period when its difference is within its materiality. Running it again replaces the period's comparison, so the answer is always as of the last run. A block is created the first time its check applies, and from then on the period's close waits on it until set-reconciliation-policy releases it. The one exception is an account block whose first comparison does not tie: it is created without holding the close, so a difference found on first contact is reported and becomes a close requirement only when you turn it on. Returns every reconciliation's standing for the period. Use preview-reconciliations to see a comparison without recording it.

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": {
      "period": "<period>"
    },
    "name": "refresh-reconciliations"
  }
}

Input Schema

NameRequiredDescriptionDefault
periodYesPeriod to reconcile at its last day, as YYYY-MM.
entity_idNoThe entity whose books to reconcile, by id. Omit for the group parent. Each entity's reconciliations, and the close they hold, are its own.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

With annotations already declaring destructiveHint=true, idempotentHint=true and openWorldHint=true, the description goes further and makes those hints concrete: re-running "replaces the period's comparison, so the answer is always as of the last run," blocks are created on first applicability, and an account block that fails to tie on first contact is created without holding the close. That first-contact exception is behavior an agent could not infer from any structured field.

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?

Purpose is front-loaded in the first sentence and the alternative is placed last, which is good ordering, and almost every sentence carries real information. It is dense, though: sentences such as "A block reconciles for the period when its difference is within its materiality" pack several domain concepts at once and slow comprehension.

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 high-complexity, multi-comparison mutation with no output schema, the description covers what gets created, overwritten, blocked and returned, plus the one exception to normal close behavior. The only thin spot is the return statement ("Returns every reconciliation's standing"), which is vague, but the operational semantics an agent needs to call it safely are all present.

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 `period` and `entity_id` are already documented by the schema, and the description adds little about the parameter values themselves. It does add one relevant scoping note ("Each entity's reconciliations, and the close they hold, are its own"), but that largely restates the entity_id schema text, so the baseline 3 applies.

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-plus-resource statement ("Run every reconciliation that applies at a period end and record each result on its block") and then enumerates the three comparison types it performs (ledger vs. QuickBooks trial balance, asset-account vs. schedules, account vs. statement balance). That is enough for an agent to tell it apart from preview-reconciliations and record-statement-balance without opening any schema.

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?

It explicitly names an alternative and the condition that selects it: "Use preview-reconciliations to see a comparison without recording it." It also frames the downstream consequence ("the period's close waits on it until set-reconciliation-policy releases it"), which tells an agent when this tool materially matters rather than just what it does.

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.