Skip to main content
Glama

ai_analyze

Analyze code files for security threats using AI-powered detection. Identifies malicious patterns, obfuscated payloads, and novel attacks that traditional methods may miss.

Instructions

Deep AI analysis of code using the trained CodeBERT model. Classifies code chunks as malicious or benign with confidence scores. Detects obfuscated payloads, novel attack patterns, and threats that static rules may miss.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYesPath to the file to analyze with AI
Behavior2/5

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

No annotations are provided, so the description carries full burden. It mentions the tool provides confidence scores and detects specific threat types, but doesn't disclose behavioral traits like computational requirements, processing time, rate limits, authentication needs, or what happens when analysis fails. For a complex AI analysis tool with zero annotation coverage, this is a significant gap.

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 efficiently structured in two sentences that directly explain the tool's purpose and capabilities. Every phrase adds value without redundancy, though it could be slightly more front-loaded by immediately contrasting with rule-based alternatives.

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 AI analysis tool with no annotations and no output schema, the description provides good purpose clarity but lacks important context about behavioral characteristics, output format, error handling, and comparison with sibling tools. It's minimally adequate but has clear gaps given the tool's complexity.

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% with the single parameter 'file_path' well-documented in the schema. The description doesn't add any parameter-specific information beyond what the schema provides, such as file format requirements or size limitations. With high schema coverage, the baseline 3 is appropriate.

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 'Deep AI analysis of code using the trained CodeBERT model' with specific functions: classifying code chunks as malicious/benign with confidence scores, detecting obfuscated payloads, novel attack patterns, and threats missed by static rules. It distinguishes from siblings like scan_file or scan_rules_file by emphasizing AI-based analysis rather than rule-based scanning.

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

Usage Guidelines3/5

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

The description implies usage for AI-based code analysis when static rules may be insufficient, but doesn't explicitly state when to use this tool versus alternatives like scan_file or scan_rules_file. No explicit when-not guidance or prerequisites are provided, leaving usage context somewhat implied rather than clearly defined.

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/goldmembrane/cleaner-code'

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