Skip to main content
Glama
Brunogar6

MCP Project Guard

by Brunogar6

find_similar_code

Search a project for existing components, functions, or patterns to reuse and maintain consistency. Specify a code type and optional term to locate similar implementations across the codebase.

Instructions

Find existing similar components, functions, or patterns in the project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNoProject path to search in/app
search_termNoSpecific term to search for in code (optional)
component_typeNoType of component/code to find (e.g., 'modal', 'button', 'api', 'form', 'service')component
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It fails to state that the tool is read-only, how 'similar' is determined, or whether there are any side effects. The description is minimal and does not add meaningful behavioral context beyond the basic action.

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 a single sentence that front-loads the action ('Find existing similar') and clearly states the scope ('in the project'). It contains no extraneous information and is appropriately sized for the tool's simplicity. Every word earns its place.

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?

The tool is relatively simple with three optional parameters and no output schema. The description explains the core purpose but omits details about what the results look like, how the search behaves, or any limitations. For a basic search tool, this is adequate but not comprehensive, leaving the agent without expectations for return format or edge cases.

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 input schema has 100% coverage: each parameter has a description (path, search_term, component_type). The tool description itself adds little beyond the schema, but it does align with the 'component_type' parameter by mentioning 'components, functions, or patterns'. Since the schema already explains parameters, a baseline of 3 is appropriate.

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 the tool's function: 'Find existing similar components, functions, or patterns in the project'. It uses a specific verb and resource, effectively differentiating it from the sibling tool 'analyze_architecture' by focusing on finding similar code rather than analyzing architecture. However, it does not explicitly name alternatives or contrasts, 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 provides no explicit guidance on when to use this tool versus alternatives. It implies usage for locating reusable code but omits any context about scenarios where it would be preferred over 'analyze_architecture' or other approaches. There are no exclusions or prerequisites mentioned.

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/Brunogar6/mcp-project-guard'

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