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

io.github.ragbase/ragbase-shield

Official
by ragbase

Lister les pièces

shield_list_documents
Read-onlyIdempotent

List documents in a coded dossier by DOC_n identifier, showing masked file names, types, and sizes to help review pseudonymised client files before sending text to AI.

Instructions

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).

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>"
    },
    "name": "shield_list_documents"
  }
}

Input Schema

NameRequiredDescriptionDefault
dossierYesCode du dossier, par exemple DOSSIER_1 (dossier code).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.1

TDQS

A3.6/5.0
Behavior4/5

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

The annotations already establish readOnly, idempotent, closed-world, non-destructive behavior, so the bar is lower. The description adds a genuinely non-obvious behavioral fact not present in any structured field: returned file names are masked, and records are identified by coded ids (DOC_n). It does not cover behavior for an unknown/invalid dossier code or whether the list is complete or paginated.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The definition is short and front-loads the verb and scope, but the second sentence is a near-verbatim French restatement of the first, which adds no new information for the same content. Half the text is redundant duplication rather than additional specification.

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?

For a simple single-parameter read tool with full annotations and full schema coverage, the description supplies what is needed: what it lists, the identifier scheme, and the masked nature of returned names. Remaining gaps (pagination, empty-dossier or invalid-code behavior) are minor for a listing operation of this simplicity.

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 description coverage is 100% with a single required parameter already documented with an example (DOSSIER_1). The description reinforces that the dossier is addressed by code and that contained items carry DOC_n identifiers, but adds no new format or validation semantics beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource ("List the documents of a dossier") and names the returned fields (masked file names, type, size), which clearly distinguishes it from reading a single document or listing dossiers. It stops short of naming the sibling tools explicitly, so differentiation depends on the reader knowing what shield_read_document and shield_list_dossiers do.

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

Usage Guidelines3/5

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

Usage is only implied: an agent can infer this is the tool for enumerating documents inside a given dossier before reading one. There is no explicit statement of when to prefer it over shield_search or shield_read_document, and no preconditions or exclusions are given.

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