Skip to main content
Glama

Rag search

rag_search
Read-only

Semantic search over the studio's knowledge base. Returns the most relevant chunks with a similarity score and their source.

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": "rag_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes
top_kNoDefault 6.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuine value by disclosing the return shape (ranked chunks plus similarity score and source), but says nothing about result limits, empty/no-match behavior, or whether the whole corpus is searched.

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?

Two short sentences, purpose first and return behavior second, with no filler wording. It is efficiently structured, though the second sentence could have carried a routing hint or a parameter note instead of stopping at the return shape.

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 usefully explains what comes back, which offsets part of the burden. However, for a retrieval tool with an undocumented required parameter and a sibling answering tool, an agent still lacks enough to know when to choose it and how top_k affects results.

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?

The description mentions no parameters at all, and schema coverage is only 50% – top_k carries a terse 'Default 6.' while query has no description whatsoever. With half the schema undocumented, the description should have clarified whether query is natural-language text and how top_k bounds the result set, but it does not compensate.

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?

States a specific verb and resource ('Semantic search over the studio's knowledge base') and even previews the return shape ('chunks with a similarity score and their source'). It does not distinguish itself from the similarly named rag_answer, so an agent must infer whether it should search or answer.

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 by the phrase 'knowledge base' – an agent can guess this is for retrieval rather than indexing or deletion. There is no explicit when-to-use, no exclusion such as 'use rag_answer for natural-language answers', and no stated prerequisites (e.g. whether the index must contain documents).

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