Skip to main content
Glama

Search Companies House

company_search
Read-onlyIdempotent

Search the Companies House register by name or keyword to find matching UK companies, returning company number, status, incorporation date and address, with pagination and optional status or type filters.

Instructions

Search the Companies House register by company name or keyword.

Returns a paginated list of matching companies with name, number, status, incorporation date, and registered address. SIC codes are not reliably returned by search; use company_profile for SIC codes. Use company_profile for the full record once you have the company number. Re-call with start_index=next_start_index to fetch the next page.

company_status / company_type are applied by this server: Companies House's search endpoint ignores them. A filtered call scans upstream pages until it has items_per_page matches or has examined 500 upstream results; if it stops at that cap, is_partial is true and fewer items does not mean no more matches exist.

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": {
      "query": "<query>"
    },
    "name": "company_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesCompany name or keyword to search for
start_indexNoPagination offset. Default 0.
company_typeNoOnly return companies of this Companies House type code. Applied by this server (Companies House search ignores it); see filters_applied and is_partial. Omit to search all.
company_statusNoOnly return companies with this status. Applied by this server (Companies House search ignores it); see filters_applied and is_partial. Omit to search all.
items_per_pageNoNumber of results to return (max 100). Default 20.

Output Schema

NameRequiredDescriptionDefault
itemsNoMatching companies. Use the `company_number` field to call company_profile, company_officers, or company_psc for full detail.
queryYesThe query string that was searched.
has_moreYesTrue if upstream results remain beyond this page. Re-call with start_index=next_start_index to fetch the next page.
returnedYesNumber of items actually returned on this page.
is_partialNoTrue when filtering stopped at the per-call cap of 500 scanned results before finding items_per_page matches and before reaching the end of the upstream results. Fewer items does NOT mean no more matches exist: re-call with start_index=next_start_index to keep scanning.
start_indexYesNumber of results skipped before this page (upstream start_index).
total_resultsYesCompanies House's total for the query BEFORE any status/type filter (same as upstream_total, kept for compatibility). Not a count of filtered matches.
items_per_pageYesPage size requested from the API for this call.
partial_reasonNoWhy the result is partial, when is_partial is true.
upstream_totalYesTotal results Companies House reports for the query text alone. /search/companies cannot filter by status or type, so this is unfiltered.
filters_appliedNoFilters this server applied to the results, e.g. {'company_status': 'active'}. Empty when none were requested. Companies House ignores status/type on this endpoint, so the server filters each upstream page itself.
next_start_indexNoUpstream offset to pass as start_index for the next page, or null when the upstream results are exhausted. With filters this is NOT start_index+items_per_page, because non-matching results are skipped.
upstream_scannedYesUpstream search results examined to build this page.
filtered_returnedYesNumber of returned items that passed filters_applied (equal to `returned`; every returned item satisfies every applied filter).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed14 schema fields changedv1.7.0
    • changedInput schema / properties / company_status / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "enum": [
      +      "active",
      +      "dissolved",
      +      "liquidation",
      +      "receivership",
      +      "converted-closed",
      +      "voluntary-arrangement",
      +      "insolvency-proceedings",
      +      "administration",
      +      "open",
      +      "closed",
      +      "registered",
      +      "removed"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / company_status / description
      Previous value: -"Filter by company status (e.g. 'active', 'dissolved'). Omit to search all."New value: +"Only return companies with this status. Applied by this server (Companies House search ignores it); see filters_applied and is_partial. Omit to search all."
    • changedInput schema / properties / company_type / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "enum": [
      +      "private-unlimited",
      +      "ltd",
      +      "plc",
      +      "old-public-company",
      +      "private-limited-guarant-nsc-limited-exemption",
      +      "limited-partnership",
      +      "private-limited-guarant-nsc",
      +      "converted-or-closed",
      +      "private-unlimited-nsc",
      +      "private-limited-shares-section-30-exemption",
      +      "protected-cell-company",
      +      "assurance-company",
      +      "oversea-company",
      +      "eeig-establishment",
      +      "icvc-securities",
      +      "icvc-warrant",
      +      "icvc-umbrella",
      +      "registered-society-non-jurisdictional",
      +      "industrial-and-provident-society",
      +      "northern-ireland",
      +      "northern-ireland-other",
      +      "llp",
      +      "royal-charter",
      +      "investment-company-with-variable-capital",
      +      "unregistered-company",
      +      "other",
      +      "european-public-limited-liability-company-se",
      +      "united-kingdom-societas",
      +      "uk-establishment",
      +      "scottish-partnership",
      +      "charitable-incorporated-organisation",
      +      "scottish-charitable-incorporated-organisation",
      +      "further-education-or-sixth-form-college-corporation",
      +      "eeig",
      +      "ukeig",
      +      "registered-overseas-entity"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / company_type / description
      Previous value: -"Filter by company type (e.g. 'ltd', 'llp'). Omit to search all."New value: +"Only return companies of this Companies House type code. Applied by this server (Companies House search ignores it); see filters_applied and is_partial. Omit to search all."
    • addedOutput schema / properties / filtered_returned
      Added value: +{
      +  "description": "Number of returned items that passed filters_applied (equal to `returned`; every returned item satisfies every applied filter).",
      +  "type": "integer"
      +}
    • addedOutput schema / properties / filters_applied
      Added value: +{
      +  "additionalProperties": {
      +    "type": "string"
      +  },
      +  "description": "Filters this server applied to the results, e.g. {'company_status': 'active'}. Empty when none were requested. Companies House ignores status/type on this endpoint, so the server filters each upstream page itself.",
      +  "type": "object"
      +}
    • changedOutput schema / properties / has_more / description
      Previous value: -"True if more results exist beyond this page. Re-call with start_index=start_index+items_per_page to fetch the next page."New value: +"True if upstream results remain beyond this page. Re-call with start_index=next_start_index to fetch the next page."
    • addedOutput schema / properties / is_partial
      Added value: +{
      +  "default": false,
      +  "description": "True when filtering stopped at the per-call cap of 500 scanned results before finding items_per_page matches and before reaching the end of the upstream results. Fewer items does NOT mean no more matches exist: re-call with start_index=next_start_index to keep scanning.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / next_start_index
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Upstream offset to pass as start_index for the next page, or null when the upstream results are exhausted. With filters this is NOT start_index+items_per_page, because non-matching results are skipped."
      +}
    • addedOutput schema / properties / partial_reason
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Why the result is partial, when is_partial is true."
      +}
    • changedOutput schema / properties / total_results / description
      Previous value: -"Total matching companies in Companies House (server-side)."New value: +"Companies House's total for the query BEFORE any status/type filter (same as upstream_total, kept for compatibility). Not a count of filtered matches."
    • addedOutput schema / properties / upstream_scanned
      Added value: +{
      +  "description": "Upstream search results examined to build this page.",
      +  "type": "integer"
      +}
    • addedOutput schema / properties / upstream_total
      Added value: +{
      +  "description": "Total results Companies House reports for the query text alone. /search/companies cannot filter by status or type, so this is unfiltered.",
      +  "type": "integer"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "query",
      -  "total_results",
      -  "start_index",
      -  "items_per_page",
      -  "returned",
      -  "has_more"
      -]New value: +[
      +  "query",
      +  "total_results",
      +  "upstream_total",
      +  "start_index",
      +  "items_per_page",
      +  "returned",
      +  "filtered_returned",
      +  "upstream_scanned",
      +  "has_more"
      +]
  2. Addedv1.0.6
  3. Removedv1.0.1
  4. First observedv1.0.0

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/openWorld, yet the description adds substantial behavior beyond them: filters are applied server-side because upstream ignores them, a filtered call scans up to 500 upstream results, and is_partial flags truncation so an agent does not misread a short page as exhaustion. That is exactly the kind of non-obvious trait that prevents wrong conclusions.

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?

Four tight paragraphs, front-loaded with the core action and each subsequent paragraph carrying a distinct concern (return shape, SIC caveat, sibling routing, pagination, filter semantics). Mild redundancy with the schema's own filter notes, but nothing is padding.

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 5-parameter search tool with an output schema, the description covers everything load-bearing: what comes back, the known data gap (SIC), the next-step sibling, pagination continuation, and the server-side filtering caveat. Nothing an agent needs in order to call it correctly or interpret a short page 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 baseline is 3; the description earns an extra point by explaining cross-parameter interplay the schema states only per-field — that company_status/company_type consume upstream scan budget governed by items_per_page and can yield is_partial. It does not add syntax detail for query or start_index beyond the schema.

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 ("Search the Companies House register by company name or keyword") and immediately scopes it against siblings by warning that SIC codes are not reliably returned and pointing to company_profile. An agent can distinguish this from search, company_profile, and fetch 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?

Gives explicit routing: "use company_profile for SIC codes" and "Use company_profile for the full record once you have the company number," plus an operational instruction for pagination ("Re-call with start_index=next_start_index"). When-to-use and when-to-use-something-else are both stated.

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