Skip to main content
Glama
io.github.ragbase/ragbase-shield

io.github.ragbase/ragbase-shield

Official
by ragbase

Lire une pièce masquée

shield_read_document
Read-onlyIdempotent

Reads a masked document from a dossier page by page, returning codes instead of real names and identifiers so you can process client files without exposing sensitive values.

Instructions

Read one document of a dossier, masked on this computer. Returns the text with codes (PERSONNE_A, SOCIETE_B, IBAN_1) instead of the real values. Long documents come in pages: call again with the returned start value. Lit une pièce masquée, page par page.

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": {
      "dossier": "<dossier>",
      "document": "<document>"
    },
    "name": "shield_read_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
startNoPosition de départ en caractères (0 au début ; utilisez la valeur « suite » renvoyée). Start offset in characters.
dossierYesCode du dossier, par exemple DOSSIER_1 (dossier code).
documentYesCode du document, par exemple DOC_3 (document code).
max_charsNoNombre maximum de caractères (500 à 50000). Maximum characters per page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.1

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description's value-add is the masking/pseudonymization behavior and the paged-read contract, neither of which is inferable from the annotations or schema. It does not say what happens when a dossier or document code is invalid, or whether codes are stable across calls.

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 and compact: purpose, then return format, then pagination in three sentences. The trailing French sentence 'Lit une pièce masquée, page par page' largely repeats the English content and the title, which is mild redundancy rather than a real defect.

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 no output schema, the description carries the burden of explaining returns, and it does so at a functional level (masked text plus a continuation offset). What is missing is the concrete shape of the response object and whether the returned continuation field is literally named 'start' or 'suite', a gap that matters for a paging loop.

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?

Schema coverage is 100%, so all four parameters including the 500-50000 max_chars bound are already documented. The description adds only the continuation hint for start, and even that is slightly inconsistent with the schema, which names the returned field 'suite' while the description calls it the 'returned start value'. Baseline 3 applies when the schema carries the detail.

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 one document of a dossier') plus the crucial qualifier that content is masked on this computer, and describes the return payload ('text with codes (PERSONNE_A, SOCIETE_B, IBAN_1) instead of the real values'). This distinguishes it from the list_* siblings, which enumerate rather than return document text.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit operational guidance for the pagination loop: 'Long documents come in pages: call again with the returned start value.' That tells the agent how to continue rather than re-fetch from the beginning. It stops short of saying when to prefer this tool over shield_search or shield_list_documents, so no exclusions are stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.