Skip to main content
Glama

Search the built code

search_code

Search project source files using a regex pattern to pinpoint specific markup or tokens, returning matches with line numbers and context for immediate code inspection.

Instructions

Grep the project's own files for a regex and get back matches with line numbers and context. This is how you find what Claude Design actually built without downloading anything: locate the markup or token, then read_file that region.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
flagsNoRegex flagsi
prefixNoOnly search paths starting with this
patternYesJavaScript regex source, e.g. shelf-builder|line-tab-feed
projectIdYes
maxMatchesNo
contextLinesNo
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses the return format (matches with line numbers and context), the scope (project's own files), and a key behavioral trait (doesn't download anything). It doesn't mention limits or performance, but for a read-only grep-like operation, this is reasonably transparent. No contradictions with annotations exist since none are provided.

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 sentences pack in the core purpose, return details, and a usage workflow. Every clause earns its place; there is no redundancy or fluff. The structure is front-loaded with the verb and resource, making it immediately scannable.

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?

For a simple search tool with no output schema, the description covers the essential aspects: what it searches, what it returns, and how to follow up. It doesn't mention defaults for maxMatches or contextLines, but those are schema-documented. The overall context is sufficient for an agent to decide and invoke the 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 description coverage is 50%, so the description must compensate. It adds meaning for 'pattern' by giving examples ('markup or token') and implies 'contextLines' via 'context'. However, it doesn't clarify flags, maxMatches, projectId, or prefix beyond what the schema already provides. It adds some value but not comprehensive parameter guidance.

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?

The description uses a specific verb ('Grep') and resource ('the project's own files') and clearly states the function: regex search with line numbers and context. It distinguishes itself from siblings by emphasizing that it works on the built code without downloading anything, positioning it as a local inspection tool, and even suggests a follow-up with read_file.

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

Usage Guidelines5/5

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

The description explicitly explains when to use this tool: to find what Claude Design actually built without downloading, by locating markup or tokens and then reading the region with read_file. It provides a clear workflow and an implicit exclusion (don't download), though it doesn't name alternative tools directly, the direction is unambiguous.

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/marvin-socialista/claude-design-mcp'

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