Skip to main content
Glama

search

Read-only

Find native file names or UTF-8 file contents within a declared context scope after applicable rules are delivered.

Instructions

Search native file names or UTF-8 file contents within the declared context scope after all applicable rules were delivered.

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_id": "<context_id>",
      "pattern": "<pattern>"
    },
    "name": "search"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNocontent
pathNo
patternYes
is_regexNo
context_idYes
max_resultsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

C2.4/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=true, so the safety profile is covered. The description adds only a vague scope constraint and says nothing about which mode is default, how results are ordered or truncated, or whether large result sets are paged.

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?

A single sentence with the verb front-loaded, which is efficient. The trailing "after all applicable rules were delivered" clause is unclear filler that dilutes rather than adds precision.

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

Completeness2/5

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

With six parameters, no output schema, and zero schema descriptions, the definition should explain mode semantics, regex behavior, result limits, and scope rules. None of that is present, leaving an agent guessing at invocation details.

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% across six parameters, so the description carries the full burden and largely fails. It hints at the files-vs-content distinction and the context scope, but never explains path, is_regex, max_results, or that pattern is the search term.

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

Purpose3/5

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

States a verb ("Search") and a resource ("native file names or UTF-8 file contents"), which keeps it above tautology. However, jargon like "native file names" and "declared context scope" is unexplained, and nothing distinguishes this from siblings such as read or discover.

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?

There is no when-to-use guidance and no named alternative for locating files versus reading them. The trailing clause "after all applicable rules were delivered" reads as a precondition but is too cryptic to act on as selection guidance.

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