Skip to main content
Glama

Scan MCP / agent-gateway for production-readiness anti-patterns

scan_gateway
Read-only

Scans a repository for gateway-readiness across 7 dimensions (RBAC, fail-close, supply-chain pinning, observability, routing/cost, secrets, prod-readiness) and returns a per-dimension color-coded summary.

Instructions

Read-only static scan of a repo/directory across 7 gateway-readiness dimensions (RBAC, fail-close, supply-chain pinning, observability, routing/cost, secrets, prod-readiness). Returns a per-dimension 🟢🟡🔴 summary plus the structured result. Never executes target code; secret values are redacted (location only, never the value).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesRepository or directory path to scan (required).
ciNoIf true, also report the CI gate verdict (would fail on any RED).
Behavior5/5

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

Annotations already declare readOnlyHint=true, and the description adds critical behavioral details: secret values are redacted (location only, never the value), no code execution, returns per-dimension summary plus structured result. This goes beyond annotations.

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

Conciseness5/5

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

Two sentences, front-loaded with action and scope. Every sentence adds value: first defines the tool, second adds safety and output detail. No fluff.

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

Completeness5/5

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

Despite no output schema, the description adequately explains the return format (per-dimension summary + structured result). The 7 dimensions are listed, and the redaction behavior is clarified. The tool is simple, and the description covers its operation fully.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema has 100% description coverage for both parameters. The description adds value by explaining the effect of 'ci' (reports CI gate verdict) and confirming 'path' is required. Baseline 3 is elevated to 4 due to added clarity.

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 title and description clearly state the tool's purpose: scanning a repo/directory for production-readiness anti-patterns across 7 dimensions. The verb 'scan' and resource are specific, and the 7 dimensions are listed, making the scope unambiguous.

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?

The description implies safe usage by stating 'Read-only static scan' and 'Never executes target code', but does not explicitly contrast with alternatives (though no siblings exist). The CI gate verdict behavior is explained, providing context for when to use the 'ci' parameter.

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/willianpinho/mcp-gateway-scan'

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