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

io.github.ragbase/ragbase-shield

Official
by ragbase

Chercher dans un dossier

shield_search
Read-onlyIdempotent

Search a dossier’s documents locally and match entity codes such as PERSONNE_A to every mention, returning masked snippets only.

Instructions

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.

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

Input Schema

NameRequiredDescriptionDefault
queryYesMots à chercher. Vous pouvez utiliser des codes (PERSONNE_A) : Shield cherche localement. Words or codes to search for.
dossierYesCode du dossier, par exemple DOSSIER_1 (dossier code).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.1

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description goes further by disclosing that search runs locally, that codes expand to every mention of an entity, and that only masked snippets are returned — real behavioral context an agent would not get from the annotations.

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?

Three short sentences, front-loaded with the core action and the code-matching rule. The trailing French gloss ('Recherche locale, extraits masqués') restates the preceding English sentence and is the only wasted line.

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 two-parameter, fully documented read tool with annotations and no output schema, the description covers action, matching semantics, and result shape (masked snippets). Minor gaps remain around result limits/pagination and whether an unknown dossier errors out.

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 a 3 would be the floor; the description earns extra credit by explaining that a code like PERSONNE_A in the query matches every mention of that entity, which clarifies query semantics beyond the schema's plain 'words or codes' note. It does not describe how dossier codes are discovered, but that is close to the sibling list_dossiers' job.

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 names a specific verb and resource ('Search the documents of a dossier locally') and adds scope details: local-only execution and masked snippets. It never explicitly contrasts itself with shield_read_document or shield_list_documents, so an agent must infer the boundary, keeping it below a 5.

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 implied by 'Search the documents of a dossier' and the code-matching note, which suggests this is the tool for entity-level lookup inside one dossier. There is no explicit when-to-use versus read_document or list_documents, and no stated exclusions or prerequisites such as the dossier existing.

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