Skip to main content
Glama

PromptVault

Search company documents

search_documents
Read-onlyIdempotent

Premium. Searches your user's company documents in PromptVault and returns the best matching passages, with personal data tokenized or redacted. Use it to answer questions from the company's own documents.

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

Input Schema

NameRequiredDescriptionDefault
queryYes
top_kNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare a safe, idempotent, closed-world read, so the bar is lower. The description still adds meaningful traits beyond them: the tool is Premium-gated, and returned passages have personal data tokenized or redacted — a non-obvious output behavior an agent should know before using results.

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, with the Premium gating and the core action front-loaded, and no filler. The final sentence is somewhat redundant with the first but does add the answering use case.

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, and the description does at least say passages are returned in best-match order with redaction applied, so return-value coverage is adequate. However, for a 2-parameter search tool with zero schema documentation, the total silence on query semantics and top_k leaves a meaningful gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the full burden, yet neither parameter is explained. Nothing says whether 'query' should be a natural-language question or keywords, how matching is ranked, or what 'top_k' controls or its bounds/default of 10.

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?

Specific verb and resource: 'Searches your user's company documents in PromptVault and returns the best matching passages.' It also states the output form (matching passages). It does not distinguish itself from the sibling ask_documents, which on its name alone is presumably a question-answering variant, so sibling differentiation is absent.

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?

'Use it to answer questions from the company's own documents' gives a positive usage context, but it largely restates the purpose rather than adding routing logic. There is no guidance on when to prefer ask_documents or list_documents, and no exclusions or prerequisites beyond the 'Premium' flag.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources