Skip to main content
Glama

FileClerk

read_scanned_accounts

Destructive

Queue a UK company's accounts filed as scanned PDFs (years where get_company_finances returns scannable: true) to be read by OCR and Claude. Call it only when those years' figures are needed: each read costs FileClerk money and counts against the hourly limit. Reads take minutes; call get_company_finances again later for the figures (years with source pdf-read). A figure is kept only when the totals or the OCR text confirm it.

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": "read_scanned_accounts"
  }
}

Input Schema

NameRequiredDescriptionDefault
company_numberYes

Output Schema

NameRequiredDescriptionDefault
aboutYes
as_ofYes
yearsYes
chargesYes
companyYes
pl_filedYes
days_to_approvalYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Adds a lot beyond the annotations: cost per call, hourly rate-limit consumption, multi-minute latency, asynchronous retrieval pattern, and the rule that a figure is kept only when totals or OCR text corroborate it. It never addresses why annotations mark this destructiveHint=true (what, if anything, gets overwritten) and says nothing about auth or workspace permissions, so it stops short of full disclosure.

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 the action, then cost/latency constraints, then the retrieval path, then the verification rule — every sentence carries information. The nested parentheticals ('years where get_company_finances returns scannable: true', 'years with source pdf-read') make it slightly denser to parse than necessary.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, return values don't need explaining, and the async 'call again later' model is covered well for a job-queueing tool. The remaining hole is the undisclosed destructiveHint and the unspecified company_number format, minor but real for a write-flagged tool.

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?

One required parameter with 0% schema description coverage; the description implies it identifies the UK company but never states the expected format (e.g. Companies House number), scope, or whether it accepts names. The single-parameter baseline caps this at roughly the minimum-viable level.

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 and resource: queue a UK company's scanned-PDF accounts for OCR/Claude reading. It also draws the boundary against the sibling get_company_finances (which returns the scannable flag and later the figures), so an agent can tell the two apart without opening either 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 an explicit when-to-use condition ('only when those years' figures are needed'), an implicit when-not (figures not needed = don't call, because each read costs money and eats the hourly limit), and names the alternative loop: call get_company_finances again later. Nothing is left to inference.

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.

Resources