Skip to main content
Glama

code_insight

Analyze code call chains and impact via code graph. Supports query, context, and impact modes for dependency tracing.

Instructions

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNo分析模式:auto(默认)、query、context、impact
queryNo查询文本(query 模式推荐)
targetNo目标符号(context/impact 模式推荐)
repoNo仓库名称(多仓库场景可选)
project_rootNo项目根目录。当前客户端未把工作区作为进程 cwd 传进来时,建议显式指定
goalNo分析目标(可选)
task_contextNo任务上下文(可选)
directionNoimpact 方向:upstream / downstream
max_depthNoimpact 最大深度(可选,默认 3)
include_testsNoimpact 是否包含测试文件(可选,默认 false)
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It mentions bridging GitNexus, modes, and auto-degradation, but does not disclose whether the tool is read-only, authentication requirements, rate limits, or what happens if the bridge fails. More behavioral context is needed.

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 concise (one Chinese sentence) and front-loaded with purpose. However, it could be better structured with separate sentences for usage and fallback behavior. Still, it efficiently communicates key points.

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?

Given the high parameter count (10) and no output schema or annotations, the description lacks detail on return values, mode-specific behavior, and limitations. It covers overall intent but not enough to fully guide an agent without additional hints.

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 baseline is 3. The description does not add meaning beyond the schema; it generalizes the tool's behavior but does not elaborate on individual parameters. For example, 'direction' and 'max_depth' are only briefly described in schema.

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 based on code graphs. It mentions specific modes (query/context/impact) and fallback behavior. This distinguishes it from sibling tools like add_feature or code_review, which are for code generation or 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 indicates when to use ('当用户需要...时使用') and describes fallback behavior. However, it does not explicitly state when not to use the tool or provide direct comparisons to alternatives among siblings.

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