Skip to main content
Glama

clearly_grep

Read-onlyIdempotent

Search CONTENT by regular expression, across notes and code at once. The pattern is passed to the engine unparsed, so metacharacters (|, (, $, quotes) mean what they mean in a regex rather than being eaten as shell syntax. ARCHIVED notes are excluded; when any matched, the result carries archivedHidden. Search the archive by naming it: path: "~/.archive". Paths are TITLES, not ids: ~ is the workspace (notes are files, projects are folders, e.g. ~/Q1/Pricing.md), /code is its code corpus, /chats is every chat you can see as read-only files (search it with grep path /chats).

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": {
      "pattern": "<pattern>"
    },
    "name": "clearly_grep"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoScope to a subtree. Omit to search notes and code together.
limitNoMax matches per page (default 60, max 200).
cursorNoContinue with nextCursor using the same pattern and path.
patternYesRegular expression, passed to the engine unparsed.
ignore_caseNoDefault true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description adds real value on top: regex is passed unparsed so metacharacters survive, archived notes are excluded by default with an `archivedHidden` marker on results, and chats are read-only. What it does not cover is result shape or how matches are surfaced, which matters since there is no output schema.

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?

The most important scoping facts are front-loaded in the first two sentences, and every sentence carries information. The closing clause restates the `/chats` instruction in parentheses, which is mild redundancy but reinforces the least obvious path root.

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?

Given five parameters, full schema coverage, and no output schema, the description supplies the non-obvious semantics an agent needs: title-based paths, archive access, chat read-only scope, and the archivedHidden signal. Pagination is handled by the cursor/limit schema descriptions, so nothing essential is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description genuinely extends the `path` parameter by explaining that paths are titles not ids, that `~` is the workspace, and that `/code` and `/chats` are valid roots. Pattern semantics are also reinforced ('passed to the engine unparsed'). Only `limit` and `cursor` are left entirely to the schema.

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 ('Search CONTENT by regular expression') and immediately bounds the scope ('across notes and code at once'). The content-vs-path framing implicitly separates it from path-oriented siblings like clearly_glob, so an agent can route without opening a schema.

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

Usage Guidelines4/5

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

Gives concrete when-to guidance: omit path to search notes and code together, name `~/.archive` to search archived content, use `/chats` to search chats. It never explicitly excludes or names an alternative tool, so the 'when not to use this' half of the guidance is absent.

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.