Skip to main content
Glama
shanmukhdatta

workspace-mcp

find_text

Search workspace files for a literal text string, with options to filter by file extensions, set case sensitivity, and limit results.

Instructions

Search file contents for a literal text string (grep-like).

Args: query: Literal text to search for. root: Directory to search under, relative to the workspace root. extensions: Optional list like [".py", ".ts"] to restrict the search. case_sensitive: Whether the match is case sensitive. max_results: Cap on number of matching lines returned.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rootNo.
queryYes
extensionsNo
max_resultsNo
case_sensitiveNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

With no annotations, the description carries the full burden. It explains the search behavior and the cap on results, indicating it returns matching lines. It does not explicitly state that it is read-only, but 'search' strongly implies this. No contradictions exist.

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?

The description starts with a one-sentence summary and then lists parameters in a clear, compact format. Every line is informative, with no unnecessary detail or repetition.

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?

Given the output schema exists, return values do not need explanation. The description covers essential behavior and parameters adequately, though it lacks usage guidance relative to sibling tools, which slightly reduces completeness for agent decision-making.

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

Parameters5/5

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

The schema provides no descriptions for any parameter, so the description is essential. It clearly explains each parameter, including the practical meaning of 'max_results' as a cap on returned lines, adding significant value beyond the raw schema.

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?

The description clearly states it searches file contents for a literal text string, using 'grep-like' to set expectations. It is specific about the action and resource, but does not explicitly differentiate from sibling 'search_files' beyond implying a focus on file contents.

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?

No guidance is provided on when to use this tool versus the sibling 'search_files'. There are no exclusions or alternative recommendations. The 'grep-like' hint is implied but not explicitly actionable.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/shanmukhdatta/workspace-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server