Skip to main content
Glama

find_similar

Searches org GitHub/GitLab repos to find existing code implementing a feature before building. Provide a task and 2-4 literal code terms for parallel searches.

Instructions

Before building a feature, find where the org already implemented it (searches the org's repos on GitHub or GitLab; nothing is cloned). task: the feature in a sentence. terms: 2-4 short searches the existing code would literally contain — class or function names, SDK calls, library names, config keys, headers (e.g. ["RateLimiter", "X-RateLimit-Remaining", "express-rate-limit"]), not the request's own words. Each term is one search; they run at once. org: only when several orgs are configured.

Input Schema

NameRequiredDescriptionDefault
orgNo
taskYes
termsYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the safety burden and does so reasonably: 'nothing is cloned' rules out side effects, and 'each term is one search; they run at once' explains the parallel execution model. It omits auth requirements and rate-limit behaviour, which matters on GitHub/GitLab-backed search.

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?

It is dense but every clause earns its place, led by the purpose and usage trigger before the parameter guidance. The inline examples are the shortest way to convey the required term style.

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?

An output schema exists, so return values need no explanation, and the description covers all three parameters plus the read-only, parallel-search behaviour. Only environmental details like credentials or query limits for the underlying GitHub/GitLab search are absent.

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?

Schema coverage is 0%, so the description has to teach every parameter, and it does: 'task' is the feature in a sentence, 'terms' are 2-4 literal code strings with concrete examples and the warning not to use the request's own words, and 'org' is conditional on multi-org setups. This is meaningfully richer than any schema field here.

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?

It names a specific verb and resource ('find where the org already implemented it') and immediately scopes it ('searches the org's repos on GitHub or GitLab; nothing is cloned'). That scope separates it from siblings like search_org or find_across at a glance.

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

Usage Guidelines4/5

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

The opening 'Before building a feature' gives a clear trigger for when to call this tool. It doesn't name an alternative tool or state when not to use it, which keeps this out of 5 territory.

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