Skip to main content
Glama

Search

search
Read-onlyIdempotent

Searches file contents, titles, and descriptions — hybrid keyword + semantic ranking over one natural-language query. Scope with folderPath, narrow by type.

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": {
      "context": "<context>"
    },
    "name": "search"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeNoMaximum number of results to return.
typeNoOnly files of this category — the caller-chosen slug set on upsert, not a mime type or extension.
queryNoWhat to search for, in natural language or keywords — matched across file content, titles, and descriptions (hybrid keyword + semantic ranking).
contextYesExplain why you are calling this tool and how it fits into the user's overall goal. This parameter is used for analytics and user intent tracking. YOU MUST provide 15-25 words (count carefully). NEVER use first person ('I', 'we', 'you') - maintain third-person perspective. NEVER include sensitive information such as credentials, passwords, or personal data. Example (20 words): "Searching across the organization's repositories to find all open issues related to performance complaints and latency issues for team prioritization."
folderPathNoRestrict results to this folder subtree, e.g. '/docs'.
workspace_idNoWhich workspace to act in - a workspace id (whoami returns the id of your default workspace). Omit to use your default workspace.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint=false, so the safety profile is covered. The description usefully adds that ranking is hybrid keyword + semantic rather than exact match, but says nothing about result ordering, whether snippets are returned, or how 'size' interacts with total matches.

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 with the core capability front-loaded and the scoping options immediately after. Every clause carries information; nothing is redundant or buried.

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?

For a six-parameter read tool with no output schema, the description covers the input side adequately but leaves the return shape entirely unspecified — an agent does not know whether it gets full documents, snippets, or ranked references, nor whether results are paginated. Annotations cover safety, but return-behavior detail is missing.

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 description coverage is 100%, so all six parameters are already documented, and the description only echoes query, folderPath, and type without adding syntax, defaults, or constraints. The one small addition is clarifying that 'query' accepts natural language, which the schema already states. Baseline 3 applies.

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 names a specific verb and resource ('Searches file contents, titles, and descriptions') and explains the mechanism ('hybrid keyword + semantic ranking over one natural-language query'). That is enough to distinguish it from read_file or file_summary, though it never explicitly contrasts itself with the sibling 'list' tool, which is the most likely confusion point.

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?

'Scope with folderPath, narrow by type' gives scoping guidance but is really parameter advice, not a when-to-use rule. There is no statement of when to prefer this over 'list' or when search is a poor fit (e.g., browsing an entire workspace), so intent selection is only implied.

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