Skip to main content
Glama

scan_mcp_server

Scans an MCP server and its exposed tools for security risks, analyzing definitions, permissions, and attack vectors to identify vulnerabilities before integration.

Instructions

Scan an MCP server and its tools for security risks. Analyzes tool definitions, permissions, and potential attack vectors.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "name": "<name>",
      "url": "<url>",
      "tools": "<tools>"
    },
    "name": "scan_mcp_server"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesServer URL or package command
nameYesMCP server name
toolsYesList of tools exposed by the MCP server

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full disclosure burden, and it discloses very little. It does not say whether the URL parameter causes a live network fetch (an SSRF-relevant behavior), whether authentication or permissions are required, whether the scan is read-only or persists a scan record retrievable via get_scan/list_scans, or how long it may take.

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?

Two compact sentences with the purpose front-loaded and no wasted wording. The second sentence is somewhat generic ('potential attack vectors') but still earns its place by naming the analysis dimensions.

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?

For a security-analysis tool with no output schema and no annotations, the description should explain what a result contains (findings, severity, pass/fail) and whether the URL is fetched live. Neither is covered, leaving real gaps for an agent deciding whether to call it and how to interpret the response.

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 all three parameters (name, url, tools) documented in the schema including the nested tool fields. The description adds no meaning beyond that, so the baseline of 3 applies.

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

Purpose4/5

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

States a specific verb and resource: scanning an MCP server and its tools for security risks, and names what is inspected (tool definitions, permissions, attack vectors). It is clear on its own, but never distinguishes itself from the closely named sibling scan_tool, which presumably scans a single tool.

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?

There is no when-to-use or when-not-to-use guidance and no mention of alternatives such as scan_tool, check_policy, or get_threat_patterns. The agent must infer from the name alone whether to scan a whole server or a single tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.