Skip to main content
Glama

rlm.search.query

Search documents in a session using BM25, regex, or literal matching. Control result limit and context characters around matches.

Instructions

Search documents. BM25 index is lazy-built on first use.

Args: session_id: Session to search query: Search query string method: Search method (bm25, regex, literal) doc_ids: Optional list of doc IDs to limit search limit: Max matches to return context_chars: Characters of context around each match

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYes
queryYes
methodNobm25
doc_idsNo
limitNo
context_charsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses that the BM25 index is lazy-built on first use, which is a useful behavioral note. However, it does not mention side effects, authentication needs, or rate limits.

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

Conciseness3/5

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

The description is moderately concise with a clear first sentence. The Args list provides structure but includes redundant information already present in the schema, slightly reducing conciseness.

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?

Given the tool has 6 parameters and an output schema, the description is adequate but incomplete. It covers the purpose and basic parameters but lacks guidance on method selection and behavior for edge cases.

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 must compensate. It lists parameter names but adds little semantic value beyond the schema (e.g., 'session_id: Session to search' is a rephrase). Default values and types are already in the schema.

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 'Search documents' clearly states the tool's purpose with a specific verb and resource. However, it does not differentiate from sibling tools like rlm.artifact.get or rlm.docs.list, which also involve document retrieval.

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?

No explicit guidance on when to use this tool versus alternatives. The description mentions search methods (bm25, regex, literal) but does not explain when to choose one over another, leaving the agent without decision criteria.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/adrianwedd/rlm-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server