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

io.github.ragbase/ragbase-shield

Official
by ragbase

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
RAGBASE_SHIELD_NERNoSet to `off` to turn off the optional name recognition model.
RAGBASE_SHIELD_HOMENoData folder (default `~/.ragbase-shield`, or `%LOCALAPPDATA%\ragbase-shield` on Windows).
RAGBASE_SHIELD_PORTNoShield Desk port.7878
RAGBASE_SHIELD_LOCALENoSet to `en` for English code labels (PERSON_A, COMPANY_A) instead of PERSONNE_A, SOCIETE_A.
RAGBASE_SHIELD_KEYRINGNoSet to `0` to keep the key in a 0600 file instead of the OS keychain.
RAGBASE_SHIELD_LANGUAGENoPins the language instead of detecting it per text.
RAGBASE_SHIELD_MASK_TOQUENoSet to `0` to keep lawyers' "toque" numbers visible (masked by default).

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

RAGbase Shield protège les données des clients de l'utilisateur par une pseudonymisation locale et réversible. Vous ne voyez que des codes : DOSSIER_1, DOC_3, PERSONNE_A, SOCIETE_B, ADRESSE_1, EMAIL_2, IBAN_1, RG_1... Les vraies valeurs restent sur l'ordinateur de l'utilisateur.

Règles :

  1. Travaillez uniquement avec les outils Shield : shield_list_dossiers, shield_list_documents, shield_read_document, shield_search. N'utilisez jamais un autre outil (lecture de fichier, terminal, recherche) sur un dossier enregistré.

  2. Ne demandez jamais à l'utilisateur les vrais noms, adresses ou numéros. Ne les écrivez jamais, même si vous croyez les deviner.

  3. Dites à l'utilisateur de ne pas coller de texte client brut ni de joindre de fichier dans la conversation : ce contenu part chez le fournisseur avant que Shield puisse agir. Il doit connecter le dossier dans Shield Desk.

  4. Recopiez les codes à l'identique (PERSONNE_A, jamais « Personne A »). N'inventez pas de code.

  5. Enregistrez le document final, rédigé avec les codes, avec shield_save_draft. Shield remet les vrais noms sur l'ordinateur et renvoie seulement un identifiant OUTPUT_n.

  6. Dites ensuite à l'utilisateur que le fichier restauré est dans le dossier « Shield - sorties » de son dossier client, et qu'il doit l'ouvrir sur son ordinateur.

  7. Une session Shield travaille sur un seul dossier client : le premier dossier ouvert. Pour un autre dossier, l'utilisateur ouvre une nouvelle session (dans Claude Desktop : quitter puis relancer l'application).

RAGbase Shield protects the user's client data with local, reversible pseudonymisation. You only see codes (DOSSIER_1, DOC_3, PERSONNE_A, SOCIETE_B, IBAN_1...); the real values stay on the user's computer. Rules: work only through the Shield tools and never use other file, shell or search tools on a registered dossier; never ask the user for real names, addresses or numbers, and never type them; tell the user not to paste raw client text or attach files in the chat (connect the dossier in Shield Desk instead); copy codes exactly and never invent one; save the final document, written with codes, with shield_save_draft; then tell the user the restored file is in the "Shield - sorties" folder of the client dossier, to open on their computer. One Shield session works on one client dossier only (the first one opened); another dossier needs a new session (in Claude Desktop: quit and restart the app).

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
shield_list_dossiersA

List the registered client dossiers by code (DOSSIER_1, DOSSIER_2...) with document and entity counts. Never shows real dossier titles. Liste les dossiers clients par code.

shield_list_documentsA

List the documents of a dossier by coded id (DOC_n) with masked file names, type and size. Liste les pièces d'un dossier (identifiants DOC_n, noms masqués).

shield_read_documentA

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.

shield_searchA

Search the documents of a dossier locally. Codes in the query (PERSONNE_A) match every mention of that entity. Returns masked snippets only. Recherche locale, extraits masqués.

shield_save_draftA

Save the final draft (written with codes) into the dossier's 'Shield - sorties' folder. Real names are restored on this computer only; the tool returns a coded file id (OUTPUT_n) and the size, never the restored text. Enregistre le projet final ; les vrais noms sont remis sur l'ordinateur uniquement.

shield_statusA

Show the Shield version, the detection mode and its honest limits. Version, mode et limites.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.9/5.0

Scored across 6 tools

Disambiguation5/5

Each tool covers a distinct step of a clear hierarchy: status, dossier listing, document listing, document reading, search, and draft saving. list_dossiers vs list_documents is unambiguous because one is a parent of the other, and read_document (single full doc) is clearly separated from search (snippet-level query).

Naming Consistency4/5

All six tools share a single shield_ prefix and use snake_case, giving a predictable pattern. The only minor deviation is shield_status (a noun, not a verb_noun), while all others follow verb_noun like list_dossiers or save_draft.

Tool Count5/5

Six tools is a tight, well-scoped set for a masked-document reader: each tool corresponds to a necessary step in the workflow (orient, browse, read, search, output). No tool appears redundant or out of place.

Completeness4/5

The read-side lifecycle is fully covered, including status, dossier and document enumeration, paged reads with continuation, and search. Minor gaps remain on the write side: there is no way to list or reopen previously saved outputs (OUTPUT_n) or to add/register new documents, which could dead-end an agent revisiting prior drafts.

Maintenance

ActivityMaintained
ResponsivenessOutdated data