Skip to main content
Glama
TXAVLOG
by TXAVLOG

search_code

Search your codebase using regular expressions, with optional glob filters to target specific files.

Instructions

Search code using regex (git grep).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesRegex query
pathFilterNoGlob filter (e.g. *.js)
Behavior3/5

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

Mentioning 'git grep' gives a behavioral hint that only Git-tracked files may be searched, but this is implicit rather than explicit. The description does not disclose details about case sensitivity, line numbers, output format, or whether untracked files are included, leaving the agent to infer behavior.

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 is one short sentence that front-loads the core purpose. Every word earns its place, and the parenthetical '(git grep)' adds valuable implementation detail without fluff.

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

Completeness3/5

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

For a simple two-parameter search tool, the description covers the essential purpose but omits return value expectations and scope limitations. Without an output schema, the agent must guess whether it receives filenames, matching lines, or other structured results, which is a notable gap.

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?

The schema already covers both parameters with clear descriptions (query as regex, pathFilter as glob). The description's mention of regex adds no extra meaning beyond the schema, so baseline 3 is appropriate. No additional parameter context is provided.

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 clearly states the tool searches code using regex, and identifies the underlying implementation as 'git grep'. This distinguishes it from sibling tools like file_search (which likely searches filenames) and search_web, making the purpose unambiguous.

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 provides no guidance on when to use this tool over alternatives like file_search or quick_search_replace. It does not mention prerequisites, scope (e.g., repository-wide), or situations where other search tools would be more appropriate.

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/TXAVLOG/txamcp'

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