Skip to main content
Glama
CompanyStack MCP server

CompanyStack MCP server

Official

Financial history from filed accounts

get_financial_history
Read-onlyIdempotent

Retrieve a UK company's financial history by company number from Companies House filings: turnover, profit, assets, liabilities, cash, ratios, trends, and signals.

Instructions

Financial figures read by software from the accounts a company filed at Companies House (iXBRL data tags, or OCR of PDF and paper filings), one entry per accounts period (newest first): turnover, gross_profit, operating_profit, profit_before_tax, profit_after_tax, total_assets, current_assets, cash_at_bank, debtors, current_liabilities, total_liabilities, net_assets, num_employees; ratios (current_ratio, cash_ratio, gearing, net_margin_pct, turnover_per_employee); per-metric trends (change_pct, cagr_pct, direction) and signals (e.g. NEGATIVE_NET_ASSETS, CASH_DECLINING, CURRENT_RATIO_BELOW_ONE). UNITS: money values are whole units of the reporting currency in the currency field, normally GBP — i.e. pounds sterling, not pence and not thousands. null means the figure was not published: small and micro-entity companies usually file filleted accounts with no turnover or profit. Companies that file only PDF or group accounts can have no periods. Needs the Starter API plan or above (a Free key gets a plan_upgrade_required error with an upgrade_url).

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_number": "<company_number>"
    },
    "name": "get_financial_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
company_numberYesCompanies House company number: 8 characters, e.g. "00445790" (Tesco PLC), "SC586124" (Scotland), "NI012345", "OC301234" (LLP). Shorter all-digit numbers are left-padded with zeros. Find it with search_companies.

Output Schema

NameRequiredDescriptionDefault
trendsNo
periodsNo
signalsNo
currencyNo
company_nameNo
company_numberNo
periods_availableNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.1/5.0
Behavior5/5

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

Annotations cover safety (readOnly, idempotent, non-destructive), and the description adds behavior they cannot: units are whole currency units (GBP pounds, not pence or thousands), null means not published rather than zero, and small/micro-entity filleted accounts typically omit turnover and profit. It also discloses the Starter-plan requirement and the exact plan_upgrade_required error with an upgrade_url, which is high-value pre-call information.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded, but the description packs a ~20-item field enumeration into a single sprawling sentence, and since an output schema exists that listing is largely redundant. The units, null-semantics and plan-gate caveats earn their place; the metric catalogue does not fully.

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?

Given an output schema exists, the description covers everything else an agent needs: units and currency semantics, null/empty-result conditions, ordering, and a plan-level auth barrier with the error code to expect. Nothing material is missing for correct interpretation of the returned data.

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 description coverage is 100% and the single company_number parameter is fully documented in the schema, including pattern, examples, zero-padding behavior and the search_companies lookup hint. The description adds nothing about the parameter, so the baseline of 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?

States a specific resource and provenance: financial figures machine-read from filed accounts, one entry per accounts period, newest first. The clarification that these are extracted figures read by software (iXBRL tags or OCR) rather than the filings themselves implicitly separates it from document-listing siblings like get_accounts and get_filing_history.

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?

Usage context is implied by the empty-result caveats (PDF-only and group-account filers can have no periods) and the plan gate, but there is no explicit when-to-use-this-vs-alternatives guidance naming any sibling. An agent must infer on its own when to reach for get_accounts or get_filing_history instead.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.