Skip to main content
Glama

Redactic

Get the state and result of a document

get_document

Returns the masked document text and its pagination when masking is complete. masked_text is returned in parts of up to 100,000 characters. text_offset defaults to zero. text.next_offset is the text_offset of the next part, or null at the end. Blackout results contain no masked_text. Labels stay in the text: original values are never returned by this connection and are restored only by the uploader in the Redactic console with the restore map, which stays with the uploader. The result includes the status for the document_id. Pending statuses (waiting_for_upload, queued, processing) include retry_after_seconds, the suggested interval between status checks. The status is done when the result is ready and error when processing fails. A completed check returns a verdict and finding count. A completed redaction includes the file format when available. Results include available single-use download links for upload page results, and the widget handles downloads for widget uploads. Download links open in the uploader’s signed-in browser. Redaction results expire by expires_at, normally 120 minutes after upload, or sooner after downloads. Reads are limited to 120 requests per minute per connection.

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

Input Schema

NameRequiredDescriptionDefault
document_idYesThe document_id associated with the upload link.
text_offsetNoZero-based character offset of the requested masked text part. The default is 0, and text.next_offset identifies the next part.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / document_id / description
      Previous value: -"The document_id returned by create_upload_link."New value: +"The document_id associated with the upload link."
    • changedInput schema / properties / text_offset / description
      Previous value: -"Where the masked text starts, for a long document. Use the next_offset of the previous answer."New value: +"Zero-based character offset of the requested masked text part. The default is 0, and text.next_offset identifies the next part."
  2. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources