Skip to main content
Glama
AgentExec

AgentExec

Official
by uniac-ai

search

Read-only

Find text or regex matches across workspace files, returning path:line:text and skipping .gitignore, .git, and node_modules.

Instructions

Searches text files under a folder, as path:line:text, the path from the workspace. Skips what .gitignore ignores, .git and node_modules.

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

Input Schema

NameRequiredDescriptionDefault
pathNoA folder or file. Inside the workspace; relative to it, or absolute; ~ is the home folder. The workspace by default.
limitNoMost matches; 200 by default.
regexNo
patternYesExact text, or a regular expression with regex.
ignore_caseNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.0.11
    • changedInput schema / properties / path / description
      Previous value: -"A folder or file. Inside the workspace; relative to it, or absolute. The workspace by default."New value: +"A folder or file. Inside the workspace; relative to it, or absolute; ~ is the home folder. The workspace by default."
  2. Changed1 schema field changedv0.0.10
    • changedInput schema / properties / path / description
      Previous value: -"A folder or file; the workspace by default."New value: +"A folder or file. Inside the workspace; relative to it, or absolute. The workspace by default."
  3. First observedv0.0.2

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish readOnlyHint=true, but the description adds real behavioral detail beyond them: results are formatted as path:line:text, paths are workspace-relative, and .gitignore entries, .git and node_modules are skipped. It does not mention truncation behavior when the limit is hit or whether skipped files are reported.

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 compact sentences with the action, output format and scope front-loaded, then the exclusion rules. No filler or restated name.

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

Completeness4/5

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

With no output schema, the description usefully supplies the result format and the exclusion rules, which are the main things an agent needs. The remaining gap is the unmentioned regex/ignore_case switches on a 5-parameter tool.

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 coverage is 60%; the schema documents 'path' and 'limit' but leaves 'regex' and 'ignore_case' bare. The description reinforces that 'path' is workspace-rooted but says nothing about the regex or ignore_case toggles, so the two undocumented parameters remain unexplained.

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 ('Searches text files under a folder') plus the return shape ('path:line:text'), so an agent can tell it apart from list/read. It stops short of naming those siblings or explicitly contrasting content-search with file-listing/reading.

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: the tool searches file contents, so an agent can infer list/read are for other tasks, but the description never says when to prefer this over reading a file directly or when not to use it (e.g., binary or very large trees).

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

Deploy Server

Other Tools