Skip to main content
Glama

Aigine Redact – Fetch reviewed document

fetch_reviewed_document

Use only after review: requires a doc_id returned by propose_masking with require_human_review: true, and the user must have clicked Redact in the review GUI. Returns a temporary download_url for the finalized masked PDF, then deletes the document from the processing server. Do not call it with a guessed doc_id or before the user confirms the review is done.

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": {
      "doc_id": "<doc_id>"
    },
    "name": "fetch_reviewed_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
doc_idYesDocument ID (doc_id) of the reviewed document.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / doc_id / description
      Previous value: -"The doc_id returned by propose_masking when status was 'awaiting_review'."New value: +"Document ID (doc_id) of the reviewed document."
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Adds substantial context beyond the annotations: the human-review gate, the temporary nature of the download_url, and server-side deletion after retrieval — which explains why idempotentHint is false. One nuance is left unresolved: destructiveHint=false while the description says it 'deletes the document', and the text does not clarify that only the ephemeral processing copy is removed, not user source data, so an agent could over- or under-estimate the risk.

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-loads the gating condition ('Use only after review') so the agent sees the precondition before anything else, and the return value and side effect follow logically. The final sentence partly restates the doc_id precondition already implied by sentence one, which is minor redundancy.

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?

There is no output schema, so the description's explanation of what is returned (a temporary download_url, not the file itself) is essential and present. Preconditions, return value, and cleanup side effect are all covered, leaving nothing an agent needs in order to call it correctly.

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 the parameter type is already documented, but the description adds provenance constraints the schema cannot express: the doc_id must originate from propose_masking with require_human_review: true and must not be guessed. That is meaningful semantic guidance beyond the field description.

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+resource ('fetch reviewed document') and immediately specifies the payload ('temporary download_url for the finalized masked PDF') plus a side effect ('deletes the document from the processing server'). It also names the sibling that produces the required input (propose_masking), so an agent can place it in the workflow without opening another 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 explicit preconditions (doc_id from propose_masking with require_human_review: true, user clicked Redact in the review GUI) and explicit when-not-to-use conditions ('Do not call it with a guessed doc_id or before the user confirms the review is done'). Both the positive trigger and the failure mode are spelled out.

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.