Skip to main content
Glama

scan_mcp_server

Scan MCP servers for security vulnerabilities and description quality to evaluate safety before installation. Detects path traversal, SQL injection, SSRF, and other risks while providing actionable recommendations.

Instructions

Scan an MCP server for security vulnerabilities, description quality, and architecture issues. Checks for path traversal, command injection, SQL injection, SSRF, hardcoded credentials, and unsafe deserialization. Scores tool descriptions for scenario triggers, parameter docs, and disambiguation. Returns a security rating (F/C/B/A/A+) with actionable recommendations. Use when evaluating whether an MCP server is safe to install or deploy.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetYesGitHub repo URL or local directory path of the MCP server to scan
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 discloses behavioral traits like scanning for specific vulnerabilities and returning a security rating with recommendations, which is helpful. However, it lacks details on execution time, error handling, or resource requirements, leaving gaps for a security tool.

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 appropriately sized and front-loaded, starting with the core action and key checks. It uses two sentences efficiently, but could be slightly more concise by combining some listed vulnerabilities without losing clarity.

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 complexity of a security scanning tool with no annotations and no output schema, the description is moderately complete. It covers purpose, usage, and high-level outputs, but lacks details on return format, error cases, or limitations, which are important for such a tool.

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 'target' documented as 'GitHub repo URL or local directory path.' The description adds no additional parameter semantics beyond this, so it meets the baseline of 3 without compensating for any gaps.

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 with specific verbs ('scan', 'checks', 'scores') and resources ('MCP server'), listing multiple vulnerability types and assessment categories. It distinguishes from the sibling tool 'check_agent_security' by focusing on server evaluation rather than agent security.

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

Usage Guidelines5/5

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

Explicit guidance is provided with 'Use when evaluating whether an MCP server is safe to install or deploy,' giving clear context for when to invoke this tool. The description also implies an alternative scenario (security assessment) without naming the sibling directly, but the context is sufficiently distinct.

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/teehooai/teeshield'

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