Skip to main content
Glama

locate

Read-only

Paste a stacktrace, failing test, or diff to identify the most relevant code nodes, ranked by personalized PageRank for targeted debugging.

Instructions

Resolve a failure signal — a stacktrace, a failing-test id, or a diff/changed-file list — to the most relevant nodes in the graph. Sniffs the signal shape, maps frames/symbols/paths to seed nodes, then ranks the surrounding subgraph by Personalized PageRank. The on-ramp for debugging: paste the error, get the code that matters.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
signalYesRaw stacktrace, failing-test id (path::test_name), or a unified diff / changed-file list.
kindNo'stacktrace', 'test', 'diff', or 'auto' (sniff the shape).auto
top_kNoNumber of ranked nodes to return. Default 20.
modeNo'table' (ranked list) or 'prose' (primed prose for LLM context).table
budgetNoMax chars in the result. 0 = no cap.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

Annotations already declare readOnlyHint=true, so no safety concerns. Description adds that it sniffs signal shape, maps to seed nodes, and ranks by PageRank, but no further behavioral details like auth or rate limits.

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?

Concise, front-loaded, and to the point. Every sentence serves a purpose with no redundancy.

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?

Covers input types, ranking algorithm, and output modes. With output schema existing, the description is sufficient for an agent to select and invoke correctly, though it lacks examples 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?

Schema description coverage is 100%, and the description restates parameter meanings without adding new information beyond what the schema provides.

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 resolves failure signals (stacktrace, test ID, diff) to relevant graph nodes using Personalized PageRank. It is distinct from siblings like 'find' or 'neighbours' but does not explicitly differentiate itself.

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

Usage Guidelines3/5

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

The description implies usage when debugging an error ('on-ramp for debugging') but does not specify when not to use it or alternatives among the sibling tools.

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/James-Chahwan/repo-graph'

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