Skip to main content
Glama

workspace_text_search

Read-only

Search workspace files by literal text or regex, filter by file extensions, limit returned matching lines, and report skipped binary or non-UTF-8 files.

Instructions

Search lines by literal text or regex; report skipped binary/non-UTF-8 files.

extensions accepts suffixes with or without a leading dot; null selects all files, while an empty list selects none. max_matches limits returned matching lines, not scanning. Counts are exact; skipped-file paths are available through the linked immutable resource.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNoproject/
queryYes
regexNo
extensionsNo
max_matchesNo
case_sensitiveNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
matchesYes
resourcesNo
matches_countYes
matches_truncatedYes
skipped_files_countYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.2

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the read-only, non-destructive safety profile, and the description adds real value on top: skipped binary/non-UTF-8 files are reported, counts are exact, and max_matches bounds returned lines rather than scanning. This exceeds what the annotations convey.

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?

Tight, front-loaded prose with no filler; the core purpose leads and the caveats follow. Dense but each clause (null vs empty list, counts exact, skipped-file resource) carries distinct information.

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 an output schema present, return-value detail is not required, and the description still adds behavior (skipped files, exact counts, linked immutable resource). It is nearly complete for a 6-param read tool; missing only a note on case_sensitive/regex interaction.

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 0%, so the description must carry parameter semantics. It does well for the nuanced ones (extensions: leading dot optional, null = all, empty = none; max_matches limits returned lines, not scanning) but leaves query, path, regex, and case_sensitive undocumented, so compensation is only partial.

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: 'Search lines by literal text or regex.' Clearly a content-search tool, distinguishable from workspace_find_files (by name) and workspace_read_file. Lacks an explicit sibling callout but the purpose reads unambiguously.

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 implied by the operation (search text in a workspace path), but no when-to-use/when-not guidance or routing to alternatives such as workspace_find_files is given. An agent must infer the right situation for content search versus filename search.

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