Skip to main content
Glama

Search documents

search_docs
Read-onlyIdempotent

When to use: keyword/hybrid search when the folder is unknown or the question spans folders. Not for browsing one known folder (get_index), not for folder tree (list_collections), not for a workset list (get_workset). Prefer list_collections → get_index when the folder is known. Hybrid search over agent-visible docs (radar, not the only entry). Optionally filter by collection name/id or pasted silvalabs:folder//. If the user pastes silvalabs:doc/… prefer get_doc with that UUID instead of searching. Returns top hits with id — then call get_doc. Budget: 1–2 searches per turn. Empty results: tell the user «Ничего не нашёл, искал в …» — no invented answer.

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_docs"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesSearch query
collectionNoOptional folder name, UUID, or silvalabs:folder/<uuid>/<name>

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the description is free to add operational context, which it does: a budget of 1–2 searches per turn, the required empty-result response ('Ничего не нашёл, искал в …' with no invented answer), and the fact that hits carry an id that should be fed to get_doc. It doesn't quantify ranking behavior or pagination, but the behavioral guidance beyond annotations is substantial.

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?

Front-loaded with 'When to use:' and then a short exclusion list, preference ordering, return behavior and fallback instructions. Dense but every clause carries routing or behavioral information, with no filler sentences.

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

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, but the description still tells the agent what comes back ('top hits with id') and the required next call. Combined with the budget and empty-result rules, an agent has everything needed to invoke and handle the result correctly.

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 are already documented, including the collection format 'folder name, UUID, or silvalabs:folder/<uuid>/<name>' — the description largely repeats this. The only added meaning is the redirect of pasted silvalabs:doc links to get_doc, which is usage guidance rather than parameter syntax.

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

Purpose5/5

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

States a specific verb and resource (keyword/hybrid search over documents) plus the scope that selects it: folder unknown or question spans folders. It explicitly contrasts with siblings get_index, list_collections and get_workset, so an agent can route correctly without opening another schema.

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

Usage Guidelines5/5

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

Gives positive conditions (folder unknown, cross-folder question) and negative ones ('not for browsing one known folder', 'not for folder tree', 'not for a workset list'), plus an explicit preferred path (list_collections → get_index) when the folder is known. It also covers the pasted-link case: silvalabs:doc/… should go to get_doc instead of a search.

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