Skip to main content
Glama

desktop_search

Search workspace filenames or UTF-8 file contents with bounded, one-shot results and optional hidden-file inclusion. Use it to locate files or text without broad traversal.

Instructions

Bounded one-shot filename or UTF-8 content search; no hidden traversal by default.

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

Input Schema

NameRequiredDescriptionDefault
pathYesWorkspace-relative path; use . for root
patternYes
timeout_msNo
ignore_caseNo
max_resultsNo
search_typeNofiles
file_patternNo
include_hiddenNo
literal_searchNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden. It does disclose two meaningful traits: the tool is bounded/one-shot (no streaming or watch), and it does not traverse hidden paths by default, which explains the include_hidden default. It omits result truncation behavior, literal-vs-regex matching, and error/timeout semantics.

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?

A single front-loaded sentence with dense, meaningful clauses and no filler. It is efficient, though its terseness contributes to the parameter and usage gaps noted elsewhere.

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?

For a 9-parameter search tool with no annotations, no output schema, and low schema coverage, one sentence is inadequate. An agent cannot learn matching semantics, result limits, or how the timeout bounds behavior from this definition alone.

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 coverage is only 11% (just path is documented), so the description must compensate and it only partially does: "filename or UTF-8 content" maps to the search_type enum, and "hidden traversal" maps to include_hidden. The remaining params — pattern, file_pattern, literal_search, ignore_case, timeout_ms, max_results — get no clarification of syntax or effect.

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?

"Bounded one-shot filename or UTF-8 content search" names a specific verb (search) plus the two resources it can match on (filename, file content), which is concrete and tells an agent what the tool returns. It does not explicitly contrast with siblings like desktop_list_directory or desktop_read_file, so it stops short of a 5.

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?

The description implies usage via "one-shot" and "no hidden traversal by default," hinting at a transient, non-recursive search rather than a directory walk. But it never states when to pick this over desktop_list_directory or desktop_read_file, and offers no exclusions or prerequisites.

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