Skip to main content
Glama

Read a document again

reparse_document
Destructive

Deletes data: has Trackberry read a document again from its file, deciding its type afresh, as the person who connected this app, and records it in the organization's audit log. Each run is a paid AI extraction that sends the file to an AI provider. The extracted data is cleared first, and what the new reading imports replaces what the old one imported (a packing list's pallets and boxes, invoice lines, dates), so a correction a person made by hand to that data can be lost. The new reading is not instant: the document shows pending, then parsed or failed; use get_document_data later. Only admins and owners can do this in Trackberry, and the answer says so for anyone else. Refused, with nothing changed, for a document that is waiting or being read, a file the security scan blocked, a shipment that has arrived, a packing list with pre-allocations (delete those first). In a demo or sample organization nothing is read: the call is recorded in the audit log, the document is unchanged and the answer says simulated true. Limited to 10 re-readings (this and recategorize_document together) an hour per connection; do not retry sooner. Use it only when the user asks, for example after a document failed or was read wrongly. On a copy shared across containers it acts on the original. Answers with the document.

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": {
      "document_id": "<document_id>"
    },
    "name": "reparse_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
document_idYesA document id such as "doc_45", as returned by list_documents.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that each run is a paid AI extraction sending the file to an external provider, that existing extracted data is cleared first so manual corrections can be lost, that the result is asynchronous (pending then parsed or failed), that admin/owner permission is required, that demo orgs simulate with `simulated` true, a 10-per-hour rate limit shared with recategorize_document, and copy/container semantics. This is exactly the context a destructive, costly mutation needs.

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 destructive/paid warning is front-loaded and nearly every clause carries new information (cost, data loss, async status, permissions, refusals, rate limit). It is a dense single block with some redundancy ('do not retry sooner' repeats the rate limit, 'the answer says so for anyone else' could be tightened), costing it a point on scannability.

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 one-parameter destructive tool with no output schema, the description covers everything an agent needs: cost, data loss risk, permissions, refusal conditions, async return behavior and how to retrieve results, plus demo and shared-copy edge cases.

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?

With a single parameter at 100% schema coverage and a schema description that already gives the id format and its provenance (list_documents), the baseline of 3 applies. The description adds no further detail about document_id itself.

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 ('read a document again from its file, deciding its type afresh') and implicitly distinguishes it from the type-only sibling recategorize_document. An agent can tell what this does and how it differs from related document tools without opening a 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?

Explicit when-to-use ('only when the user asks, for example after a document failed or was read wrongly'), explicit when-not (documents waiting or being read, security-blocked files, arrived shipments, packing lists with pre-allocations — with the remediation 'delete those first'), and it points to the follow-up tool get_document_data for polling.

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