Skip to main content
Glama

mcp-server-security-scan

Pre-connect security audit for MCP servers — probes a remote MCP endpoint (auth, TLS, CORS, tools/list) and checks every tool for tool poisoning, prompt injection, hidden Unicode, embedded secrets, and dangerous capabilities (shell, file write, payments, credentials). Returns a safe_to_connect / connect_with_caution / do_not_connect verdict. Optional AI second opinion. (REST equivalent: POST /api/v1/mcp-server-security-scan, $0.25)

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "mcp-server-security-scan"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoRemote MCP server URL (streamable HTTP, https)
toolsNoOptional tools/list result to analyze (for local/stdio or auth-protected servers)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations carry only a title, so the description does the heavy lifting and does it well: it discloses the probe categories, the three possible verdicts (safe_to_connect / connect_with_caution / do_not_connect), the optional AI second-opinion behavior, the REST equivalent, and the $0.25 cost. It does not state whether credentials are needed to reach an auth-protected target, expected latency, or whether the scan is strictly non-mutating against the remote endpoint.

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?

A single dense paragraph that front-loads purpose, then checks, then verdicts, then pricing — good ordering with no filler sentences. The parenthetical clauses (REST equivalent, cost) make it slightly crowded, but each carries genuinely useful routing or cost information.

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

Completeness4/5

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

With no output schema, the description correctly compensates by naming the three verdict values the caller will receive. For a two-parameter, zero-required tool this is nearly complete; it could go further on what the full report body contains beyond the verdict, but an agent has enough to call it and interpret the result.

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 both `url` and `tools` documented in the schema itself, so the baseline is 3. The description mentions tools/list probing but adds no syntax, format, or constraint detail beyond what the schema already provides for either parameter.

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 opens with a specific verb+resource phrase ('Pre-connect security audit for MCP servers') and then enumerates exactly what is probed (auth, TLS, CORS, tools/list) and what is checked (tool poisoning, prompt injection, hidden Unicode, secrets, dangerous capabilities). This is clearly distinct from sibling security tools like ssl-certificate-audit, secret-scan, or dns-email-security-audit, which each target a different surface.

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

Usage Guidelines4/5

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

'Pre-connect' establishes the moment of use unambiguously: before connecting an agent to an untrusted MCP server. The description also implicitly scopes the alternative path by noting the optional tools/list input for local/stdio or auth-protected servers. It stops short of stating when not to use it or naming a sibling alternative explicitly.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources