Skip to main content
Glama
LesserWords

Reusable Privacy MCP Server

by LesserWords

search_docs

Search local documents by keyword to retrieve sanitized matching lines, with PII and secrets redacted before snippets reach LLMs.

Instructions

Searches documents locally using full-text keywords. Returns sanitized matching lines.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesKeyword query to search for
maxResultsNoMax results to return (default 10)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose two useful traits: the search is local (no network/remote dependency) and results are "sanitized matching lines." It says nothing about permissions, indexing prerequisites, or result limits beyond the schema default.

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

Conciseness5/5

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

Two short sentences, zero filler, and the core action is front-loaded. Every clause earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 hint about the return shape (sanitized matching lines) is valuable. However, for a tool with no annotations and no output schema, it omits result format details, pagination/limit behavior, and failure modes.

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 both parameters (query, maxResults) are already documented. The description adds no format or syntax detail beyond what the schema provides, making the baseline 3 appropriate.

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 ("Searches documents") plus a mechanism ("full-text keywords"), so an agent knows exactly what the tool does. It does not, however, explicitly distinguish itself from siblings like read_snippet or list_structure.

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

Usage Guidelines2/5

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

There is no statement of when to use this tool versus the alternatives (list_structure, read_snippet) or when it is inappropriate. "Locally" hints at scope but leaves routing entirely to inference.

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

Deploy Server

Other Tools