Skip to main content
Glama
UK Business Tools - Ledgerhall

UK Business Tools - Ledgerhall

Search Companies House

dd_company_search
Read-onlyIdempotent

Search the UK Companies House register by company name or keyword to find matching companies, filter by status or type, and review key details with paginated results.

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": "dd_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 changedv0.4.1
    • 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. First observedv0.2.1

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered structurally. The description still adds real behavior beyond them: the server-side filter emulation, the 500-upstream-result scan cap, and the meaning of is_partial. Return fields are listed but the output schema plausibly covers them.

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 return shape, then caveats and pagination; every sentence carries information. It is dense but not padded, though the caveat paragraph could be tightened slightly.

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 filtered, paginated search with a 5-param schema, the description covers what comes back, what does not, how to page, and how to interpret truncated results. With an output schema present, nothing essential for correct invocation 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 would be 3; the description earns above that by explaining that company_status/company_type are applied by this server and that Companies House's endpoint ignores them, which is semantics the schema does not convey. It also clarifies the pagination contract for start_index.

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 concrete verb and resource ("Search the Companies House register by company name or keyword") and names the sibling that handles the deeper lookup (company_profile), so the agent can separate this from profile/filing siblings without reading schemas.

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 rules: use company_profile for SIC codes and for the full record once the company number is known, and re-call with start_index=next_start_index to paginate. It also warns that a filtered call can return fewer items than exist, which pre-empts a common misuse.

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

Deploy Server

Other Tools