Skip to main content
Glama

reef_where_used

reef_where_used
Read-onlyIdempotent

Find where a symbol, component, route, file, or pattern is defined and used in a codebase. Uses maintained import graph and indexed references to provide accurate locations without running grep.

Instructions

Reef maintained structural query: answer where a symbol, component, route, file, or indexed pattern is defined and used from maintained symbols/imports/routes first, then supplement symbol/component answers with indexed identifier-text references and related durable findings. Does not run grep; coverage explains import-graph/text/finding limits and returns fallback tool args when maintained state has no answer.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectIdNo
projectRefNo
queryYes
targetKindNo
freshnessPolicyNo
limitNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
toolNameYes
projectIdYes
projectRootYes
queryYes
targetKindNo
definitionsYes
usagesYes
relatedFindingsYes
coverageYes
totalReturnedYes
reefExecutionYes
fallbackRecommendationNo
warningsYes
_hintsYes
Behavior4/5

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

Annotations already provide readOnlyHint and idempotentHint. The description adds behavioral context: it does not run grep, coverage explains limits, and returns fallback tool args. This adds value beyond annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single dense sentence that front-loads purpose. It is efficient but could be split for readability. Every part adds value, but it is slightly verbose.

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, the description need not detail return values. It covers coverage limits, fallback behavior, and the two-stage process. However, it lacks detail on what the answer structure looks like, and parameter semantics are weak.

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

Parameters2/5

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

Schema description coverage is 0% so parameters are undocumented in schema. The description only implicitly mentions query and targetKind via 'symbol, component, route, file, or pattern', but provides no explanation of projectId, projectRef, freshnessPolicy, or limit. This is insufficient for correct parameter usage.

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 answers where a symbol, component, route, file, or pattern is defined and used, with a two-stage process from maintained state then indexed references. It explicitly says it does not run grep, distinguishing it from raw text search tools.

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 description implies usage for structural queries and mentions fallback behavior when maintained state has no answer. It explicitly states what it does not do (grep), but does not explicitly name alternative tools like live_text_search or cross_search.

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/drhalto/agentmako'

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