Skip to main content
Glama

code_insight

Read-only

Analyze code call chains, context, and impact using code graphs. Supports query, context, and impact modes to trace dependencies and assess change effects.

Instructions

当用户需要基于代码图谱分析调用链、上下文和影响面时使用。默认桥接 GitNexus,支持 query/context/impact 模式;不可用时自动降级并返回原因

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
goalNo分析目标(可选)
modeNo分析模式:auto(默认)、query、context、impact
repoNo仓库名称(多仓库场景可选)
queryNo查询文本(query 模式推荐)
targetNo目标符号(context/impact 模式推荐)
directionNoimpact 方向:upstream / downstream
max_depthNoimpact 最大深度(可选,默认 3)
project_rootNo项目根目录绝对路径。建议显式传入;当调用里还包含相对路径参数时,应统一相对该项目根目录解析,避免依赖客户端 cwd。
task_contextNo任务上下文(可选)
include_testsNoimpact 是否包含测试文件(可选,默认 false)
Behavior4/5

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

Annotations already declare readOnlyHint=true, indicating a safe read operation. The description adds details on multiple analysis modes, default backend, and automatic degradation with error reporting, providing useful behavioral context 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.

Conciseness5/5

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

The description is extremely concise, using two sentences to convey purpose, modes, and fallback behavior. Every word serves a purpose without redundancy.

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?

While the high-level purpose is clear, the description does not explain the return value or output format. Given the complexity (10 parameters, 4 modes) and no output schema, some indication of what the user gets would improve completeness.

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 coverage is 100%, so the baseline is 3. The description does not add additional parameter-level meaning; the schema already describes each parameter adequately.

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's purpose: analyzing call chains, context, and impact using a code graph. It specifies the modes (query/context/impact) and the default backend (GitNexus), making it distinct from siblings like code_review.

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 explicitly states when to use this tool (when analyzing code graph relationships) and mentions auto-degradation when unavailable. It does not provide explicit exclusions or alternatives, but the context is clear.

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/mybolide/mcp-probe-kit'

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