Skip to main content
Glama
czx1111

Code Audit MCP Server

by czx1111

audit_analyze_file

Analyze a single file for code security issues using AST parsing, function extraction, and vulnerability detection.

Instructions

对单个文件进行详细的代码安全分析,包括AST解析、函数提取和漏洞检测。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filePathYes要分析的文件路径
languageNo指定编程语言auto
Behavior3/5

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

No annotations provided, so the description carries full burden. It adds behavioral context by specifying the analysis includes AST parsing, function extraction, and vulnerability detection, which is useful and implies a read-only operation. However, it does not disclose side effects, permissions, or output format.

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 a single, efficient sentence that conveys the tool's purpose and key capabilities without any waste.

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?

For a complex analysis tool with no output schema, the description gives a good overview of what the tool does internally. However, it lacks information about return values or output structure, leaving some ambiguity for the agent.

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% for both parameters (filePath and language), so baseline is 3. The description does not add additional parameter-specific meaning beyond what the schema already provides.

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 performs detailed code security analysis on a single file, listing specific operations (AST parsing, function extraction, vulnerability detection), which distinguishes it from siblings like 'audit_quick_scan' or 'audit_scan'.

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

Usage Guidelines2/5

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

No explicit guidance on when to use this tool versus alternatives. The description implies it is for detailed single-file analysis but does not mention exclusions or refer to 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/czx1111/Code-audit-MCP'

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