Skip to main content
Glama
lllli223

codex-workspace-codegraph-mcp

by lllli223

CodeGraph: codegraph_callers

codegraph_callers
Read-onlyIdempotent

Discover which functions call a given symbol in your codebase. Provide the symbol name and project path to return caller functions, filtered by file and limited to a specified maximum.

Instructions

List functions that call . For the full flow, use codegraph_explore.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileNoNarrow to the definition in this file (path or suffix) when several same-named symbols exist (e.g. one UserService per app in a monorepo)
limitNoMaximum number of callers to return (default: 20)
symbolYesName of the function, method, or class to find callers for
projectPathYesAbsolute path to the project to query (or any directory inside it) — codegraph uses the nearest .codegraph/ index at or above that path. Omit to use this session's default project. Pass it to query a second codebase, or when the server root has no index of its own (e.g. a monorepo where only sub-projects are indexed, so there is no default project).
Behavior3/5

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

Annotations already cover the safety profile (read-only, idempotent, non-destructive, closed-world), so the description only adds the 'full flow' routing hint. It does not disclose whether callers are direct/one-level vs transitive, what the return list shape is, or any index prerequisites. No contradiction with annotations, but minimal extra behavioral context.

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?

Two short sentences deliver the core purpose and point to the appropriate sibling tool. There is no filler or repetition; the description is front-loaded with the actionable verb-resource statement.

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?

With 100% schema coverage and strong annotations, the definition is largely complete for a simple read-only listing tool. The main gaps are the lack of explicit 'direct callers only' clarification and any return shape detail, but the description plus schema gives an agent enough to invoke it correctly in most situations.

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%, so all four parameters are already documented with meaningful details (file disambiguation, limit, symbol, projectPath semantics). The tool description itself adds no parameter-specific guidance, so it earns the baseline 3 rather than higher.

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 states a specific verb ('List') and resource ('functions that call <symbol>'), making the tool's purpose immediately clear. It also distinguishes itself from the sibling by pointing to codegraph_explore for the broader flow, and the name 'codegraph_callers' aligns cleanly with this purpose.

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 gives a clear routing hint: 'For the full flow, use codegraph_explore.' This tells an agent when a broader alternative is appropriate. It does not explicitly mention codegraph_callees for downstream callers or state exclusions, but the caller-vs-full-flow distinction provides useful, non-misleading context.

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/lllli223/codex-workspace-codegraph-mcp'

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