Skip to main content
Glama
notasandy

MCP Code Sanitizer

analyze_code

Analyze code fragments to identify bugs, vulnerabilities, and security issues using AI-powered strict analysis.

Instructions

Strict analysis of a code fragment using Groq LLM.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesCode fragment to review.
languageNoProgramming language (python, javascript, go, rust, ...).python
contextNoOptional description — what the code does or where it came from.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations exist, so the description must cover behavioral traits. 'Strict analysis' implies a certain rigor, but there is no information on whether the operation is read-only, what side effects occur (e.g., data mutation), or if authentication is required. The description is insufficient.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

The description is very short, which could be considered concise, but it lacks essential guidance. While front-loaded with the core action, it sacrifices completeness, making it less efficient for an agent.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 3 parameters, no enums, and the presence of an output schema (not detailed), the description fails to provide context on what 'analysis' entails, what output to expect, or any constraints. It is incomplete for effective agent use.

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?

The input schema provides 100% coverage for all three parameters with clear descriptions. The tool description adds no additional meaning beyond the schema, so the baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description says 'Strict analysis of a code fragment using Groq LLM.' It clearly identifies the verb (analyze) and resource (code fragment), but 'strict analysis' is vague and does not differentiate it from sibling tools like explain_code or compare_code, which also perform code analysis.

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

Usage Guidelines1/5

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

No guidance is provided on when to use this tool versus alternatives like analyze_file or generate_tests. There is no mention of when not to use it or any context for selection.

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/notasandy/mcp-code-sanitizer'

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