Skip to main content
Glama

check_accounts

Read-onlyIdempotent

Derive a small-company balance sheet (micro-entity, in UK terms) from raw figures and validate it. Returns the derived sheet for the current and prior year, the figures the authority would reject (negatives where it wants a positive, share capital left at nil), and whether they are complete enough to hand to a filing product. It does NOT check that the sheet balances and cannot: retained earnings is derived as the balancing figure, so each column always agrees with itself. Do not tell anybody their sheet was checked for internal consistency within a column. It DOES compare the two columns to each other: when this year's reserves do not equal last year's plus this year's result it returns a warning, which most often means last year was wrong and the comparative needs restating. Free and instant: call it after every change to the figures. All money in major units (pounds not pence, dollars not cents). Pass lastFiledAs from lookup_company and it also warns when figures showing activity are about to be filed dormant again.

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": {
      "jurisdiction": "<jurisdiction>",
      "figures": "<figures>"
    },
    "name": "check_accounts"
  }
}

Input Schema

NameRequiredDescriptionDefault
figuresYesThe figures behind a small-company balance sheet. ALL amounts in major units.
lastFiledAsNoWhat the last accounts were filed as, straight from lookup_company's company.lastAccountsType. Pass it through; do not guess it.
jurisdictionYesISO country code. GB is the only jurisdiction with full support.GB

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / figures / properties / calledUpShareCapitalNotPaid
      Added value: +{
      +  "default": 0,
      +  "description": "Share capital subscribed for but never paid to the company, an asset on its own line above fixed assets. Usually 1 for a company formed with one unpaid share. Not a debtor and not a current asset.",
      +  "type": "number"
      +}
    • addedInput schema / properties / figures / properties / calledUpShareCapitalNotPaidPrior
      Added value: +{
      +  "default": 0,
      +  "description": "Previous year called up share capital not paid. Usually the same as this year.",
      +  "type": "number"
      +}
    • changedInput schema / properties / figures / required
      Previous value: -[
      -  "turnover",
      -  "turnoverPrior",
      -  "operatingCosts",
      -  "operatingCostsPrior",
      -  "fixedAssets",
      -  "fixedAssetsPrior",
      -  "cashAtBank",
      -  "cashAtBankPrior",
      -  "debtors",
      -  "debtorsPrior",
      -  "creditorsWithinOneYear",
      -  "creditorsWithinOneYearPrior",
      -  "directorsLoan",
      -  "directorsLoanPrior",
      -  "shareCapital",
      -  "shareCapitalPrior"
      -]New value: +[
      +  "turnover",
      +  "turnoverPrior",
      +  "operatingCosts",
      +  "operatingCostsPrior",
      +  "fixedAssets",
      +  "fixedAssetsPrior",
      +  "cashAtBank",
      +  "cashAtBankPrior",
      +  "debtors",
      +  "debtorsPrior",
      +  "creditorsWithinOneYear",
      +  "creditorsWithinOneYearPrior",
      +  "directorsLoan",
      +  "directorsLoanPrior",
      +  "calledUpShareCapitalNotPaid",
      +  "calledUpShareCapitalNotPaidPrior",
      +  "shareCapital",
      +  "shareCapitalPrior"
      +]
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the safety profile is covered; the description adds substantive behavior beyond that: it is free and instant, returns current and prior year derived sheets, flags figures the authority would reject, reports completeness for filing, and warns on cross-column reserve mismatch and dormant re-filing. It also explains the deliberate limitation (retained earnings as balancing figure) that determines what the output can and cannot mean.

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 and the key limitation are front-loaded, and nearly every sentence carries operational weight. The internal-consistency caveat is stated twice in slightly different forms ('does not check that the sheet balances' and 'do not tell anybody their sheet was checked'), which is mildly redundant but defensible given the risk of misreporting.

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 read-only derivation tool with a nested eighteen-field figures object and no output schema, the description explains the return shape (derived sheets for both years, rejected figures, completeness verdict, reserve-mismatch and dormant-filing warnings). Nothing an agent needs to call it correctly or interpret its result is missing.

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 coverage is 100%, so the baseline is 3, but the description adds real meaning on top: all money in major units (pounds not pence), and lastFiledAs must come from lookup_company rather than being guessed, plus the warning it unlocks. It does not walk through the eighteen figures object fields, but the schema documents them thoroughly.

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?

Opens with a specific verb and resource: derive a small-company (micro-entity) balance sheet from raw figures and validate it. It immediately bounds the scope by stating what it does NOT do ('does NOT check that the sheet balances and cannot'), which prevents an agent from confusing it with a pure arithmetic or totals tool among the siblings.

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?

Gives explicit when-to-use ('call it after every change to the figures'), a data-flow instruction ('Pass lastFiledAs from lookup_company... do not guess it'), and explicit usage limits ('Do not tell anybody their sheet was checked for internal consistency'). The agent knows both when to call it and how to report its results without inference.

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