Skip to main content
Glama
CompanyStack MCP server

CompanyStack MCP server

Official

Search UK companies

search_companies
Read-onlyIdempotent

Search UK Companies House records by company name, status, SIC code, postcode, or town to find company numbers and verify matching company details.

Instructions

Search the Companies House register of UK companies (as held by CompanyStack) by name and/or filters, to find company numbers. query is matched as whole words against the company name (full-text; not prefix or fuzzy matching). Results are ranked, but the company the user means is not always first: check company_name, company_status and date_of_creation before relying on a result, and if it is missing, search again with the fuller registered name (e.g. "greggs plc" rather than "greggs"). Give at least one of query, status, sic_code, postcode or town; filters combine with AND. Returns total (a count, capped for very broad filters), and results with company_number, company_name, company_status, company_type, date_of_creation, registered_office_address, sic_codes, accounts and confirmation-statement due dates, and data_freshness. Available on the Free API plan and above. On the Free plan only the first page is available: at most 10 results, and offset is not applied (the response shows offset 0 and paging_limited: true), so do not page with a Free key; narrow the search with filters instead. Paid plans return up to 100 results per page and page with offset.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_companies"
  }
}

Input Schema

NameRequiredDescriptionDefault
townNoRegistered office post town, e.g. "LEEDS" (case-insensitive substring match).
limitNoResults per page, 1–100 (default 20; Free plan capped at 10).
queryNoWords in the company name, e.g. "tesco" or "acme widgets". At least 2 characters.
offsetNoResults to skip, for paging. Paid plans only: the Free plan returns only the first page whatever the offset.
statusNoCompany status to match, e.g. "active", "dissolved", "liquidation" (case-insensitive substring match).
postcodeNoRegistered office postcode or its start, e.g. "EC2", "M1" or "LS1 4AP".
sic_codeNoExact 5-digit UK SIC 2007 code, e.g. "62020" (IT consultancy). Matches any of the company's SIC codes.

Output Schema

NameRequiredDescriptionDefault
limitNo
queryNo
totalNo
offsetNo
resultsNo
total_cappedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare read-only/idempotent/open-world; the description adds far more: whole-word full-text matching with no prefix or fuzzy behavior, ranked-but-unreliable ordering, plan gating (Free vs paid), and the Free-plan restriction that offset is ignored and paging_limited is returned. That is exactly the behavioral context an agent needs before paging or trusting a top hit.

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?

Front-loaded with purpose, then matching semantics, then verification advice, then plan/paging constraints — a sensible order with no filler sentences. It loses a point for restating a few things already in the schema (limit cap of 10, offset ignored on Free) rather than pointing at them once.

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 7-parameter, zero-required search tool with plan-dependent paging, the description covers matching behavior, AND combination, verification of returned fields, and Free-plan paging limits. An output schema exists, so the enumerated return fields are redundant but harmless rather than a gap.

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 already 100%, so the baseline is 3. The description still adds meaning beyond the schema by explaining that query is matched as whole words (not prefix/fuzzy) and that filters combine with AND, and by recommending the fuller registered name as a query formulation.

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 (Search) and a specific resource (Companies House register of UK companies as held by CompanyStack) and names the outcome sought (company numbers). That outcome explicitly distinguishes it from siblings like get_company, which operate on an already-known number.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

Gives concrete when-to-use rules: at least one of query/status/sic_code/postcode/town must be supplied and filters combine with AND. It also gives a recovery path ('if it is missing, search again with the fuller registered name'). It does not explicitly name a sibling alternative for looking up a known company number, which keeps it from a 5.

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