Skip to main content
Glama

save_filing

Idempotent

Save a set of figures to the user's account, or update a saved one by passing its id from list_saved_filings. Figures in major units. The filing is saved even when validation finds problems, because a work in progress is worth keeping, and the problems come back in the response so you can raise them.

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": "save_filing"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoOmit to create. Pass an id from list_saved_filings to update that filing.
labelNoA name for the filing, e.g. "SparkGames year to 31 Dec 2025".
figuresYesThe figures behind a small-company balance sheet. ALL amounts in major units.
identifiersNoRegister identifiers, e.g. {"companyNumber": "15379140"}. Tax references (UTR, EIN, TFN) are never stored and are silently dropped.
jurisdictionYesGB
categoryTotalsNoWhere the figures came from, when a bank statement fed them: signed major-unit totals per category code from categorise_transactions.

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

A3.7/5.0
Behavior4/5

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

Annotations already declare write, idempotent, non-destructive and open-world behavior. The description adds genuinely non-obvious semantics beyond that: the filing persists even when validation fails (partial success), and the validation problems are returned in the response so the agent can surface them. Auth requirements and any rate limits remain unstated.

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?

Two sentences, front-loaded with the action and the create/update switch before the caveat about validation. The closing clause is long but carries real information. No filler or repetition.

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?

With six parameters, a large nested figures object, and no output schema, the description covers the essentials an agent needs: units, create-vs-update, siblings for ids, and what comes back on validation failure. It stops short of describing the rest of the response or permission requirements, but is adequate for the tool's complexity.

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 83%, so the schema already documents nearly every parameter, including the id create/update rule and the major-units convention. The description's 'Figures in major units' and id hint largely restate structured data, adding only reinforcement rather than new meaning. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource ('Save a set of figures to the user's account') and within the same sentence distinguishes creation from update by id. It names the sibling that supplies the id (list_saved_filings), though it does not contrast itself with validation-oriented siblings like check_accounts.

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?

It gives the create-vs-update condition (omit id, or pass an id from list_saved_filings) and warns that saving proceeds despite validation problems. It offers no guidance on when to run check_accounts first or how this differs from totals_to_figures, so usage is implied rather than fully prescribed.

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