Skip to main content
Glama

UK Business Tools - Ledgerhall

Get Companies House Filing Document

dd_company_filing_document
Read-onlyIdempotent

Resolve a filing's document_metadata link to its authoritative source document.

Returns a resource_link (never embedded bytes, never base64) pointing at a company-document:// MCP resource — fetch it via resources/read to get the actual PDF. This tool only reads metadata (category, pages, available content types, byte size); it never downloads the document itself. Use company_filing_history first to find a filing's document_metadata URL.

Requires a resource-capable MCP client to retrieve the actual bytes — a tool-only client can see this result's metadata (company, category, page count, size) but cannot obtain the file through this tool call alone.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
mime_typeNoWhich content representation to select, e.g. 'application/pdf'. Omit when the document has only one representation (the near-universal case) — it is auto-selected. Required if the document has more than one; omitting it in that case returns a validation error listing the choices.
document_metadata_urlYesThe document_metadata URL from a filing's links.document_metadata (returned by company_filing_history) — pass it through verbatim, not a document_id. Must be an exact https://document-api.company-information.service.gov.uk/document/{id} URL.

TDQS

A4.8/5.0
Behavior5/5

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

Even with readOnlyHint, idempotentHint, and destructiveHint=false annotations, the description goes well beyond them: it states the tool never embeds bytes and never returns base64, only reads metadata, and requires a resource-capable MCP client for bytes. It explicitly discloses that tool-only clients cannot obtain the file, which is valuable behavioral context beyond the annotations.

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?

The description is dense and mostly front-loaded: purpose first, output type second, metadata-only behavior third, and workflow fourth. Almost every sentence earns its place. There's slight redundancy between 'never downloads' and 'can see this result's metadata but cannot obtain the file,' but it's honestly more clarifying than wasteful. A tight 4.

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?

With no output schema to fall back on, the description fully compensates: it states the exact return shape (resource_link) and its type (company-document:// MCP resource), what metadata fields are available (company, category, page count, size, content types), and the prerequisite steps. This is exactly the completeness needed for a 2-param, no-output-schema resolver tool.

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%—both params are documented in the schema. The description adds semantic nuance beyond the schema by asserting the URL must be passed verbatim and must be an exact document-api URL, and by contextualizing mime_type selection as needing to only be set when multiple representations exist. This is valuable on top of 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?

The description opens with a specific verb-resource pair: 'Resolve a filing's document_metadata link to its authoritative source document.' It clearly distinguishes this from siblings like dd_company_filing_history by explaining that this tool converts the discovered metadata URL into a concrete resource_link rather than listing filings or downloading content.

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?

Explicit workflow guidance is provided: 'Use company_filing_history first to find a filing's document_metadata URL,' with follow-on instructions to fetch the actual PDF via resources/read. The description also warns about client capability constraints, telling tool-only clients exactly what they can and cannot do, which is clear when-to-use and when-not-to-use information.

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.

TDQS

A4/5.0
Disambiguation4/5

Tools are well-grouped by domain prefixes (dd_, gov_, law_, prop_) with clear descriptions that differentiate them. However, there is minor overlap, e.g., dd_search could be used instead of individual searches, and dd_fetch versus dedicated profile tools might cause confusion.

Naming Consistency5/5

All tools follow a consistent verb_noun pattern with domain-specific prefixes (dd_, gov_, law_, prop_). Names are descriptive and predictable, e.g., dd_charity_search, gov_govuk_search, law_bills_search_bills.

Tool Count4/5

70 tools is high but justified by the broad scope covering due diligence, government, legal, and property domains. Each domain has a reasonable number of tools (about 15-20 each). The count is on the upper end but still manageable.

Completeness5/5

The tool set is comprehensive across all domains: full CRUD for companies and charities, detailed legal research (cases, legislation, parliament, citations), property data (EPC, planning, price paid, rentals), and government information. No obvious gaps for the intended use cases.

Resources