Skip to main content
Glama

security_openapi_check

Read-only

OpenAPI Security Audit — Static security review of an OpenAPI 3.x or Swagger 2.0 spec mapped to the OWASP API Security Top 10 (2023): missing or undefined auth schemes, unauthenticated or optional-auth write operations and sensitive paths (admin, users, tokens, billing, export...), API keys or secrets in query strings, Basic auth, OAuth implicit/password flows, plain-HTTP servers and OAuth URLs, non-production servers, debug endpoints, TRACE, unbounded page sizes and arrays, sensitive fields in responses, mass-assignable privileged fields, missing 401/403 and 429 docs. spec= JSON or YAML text, or url= (GitHub blob links converted to raw). Returns PASS/REVIEW/FIX BEFORE RELEASE/BLOCK, score, grade and findings. Price: $0.006 USDC (Base, via x402).

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": {
      "url": "<url>"
    },
    "name": "security_openapi_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYeshttps://raw.githubusercontent.com/OAI/learn.openapis.org/main/examples/v3.0/petstore.json

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / url / description
      Previous value: -"https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v3.0/petstore.json"New value: +"https://raw.githubusercontent.com/OAI/learn.openapis.org/main/examples/v3.0/petstore.json"
  2. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true and destructiveHint=false, and the description still adds real value on top: the verdict scale (PASS/REVIEW/FIX BEFORE RELEASE/BLOCK), score, grade and findings, GitHub blob link normalization to raw, and the paid x402 pricing ($0.006 USDC on Base). The cost and output shape are exactly the kind of behavioral facts annotations cannot carry.

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?

Purpose and framework are front-loaded before the long check enumeration, and the output/pricing facts are placed last where they belong. The middle checklist run-on is dense and reads as a feature dump, but each item is a concrete audit rule rather than filler.

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 takes on the burden of describing the return value (verdict, score, grade, findings) and also discloses the payment requirement. The only completeness gap is the 'spec=' input mode that the schema does not support, which could mislead an agent assembling the call.

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 coverage is 100% and there is only one parameter, so the baseline applies. The description does add meaning beyond the schema's bare example URL by noting that GitHub blob links are converted to raw — but it also advertises a 'spec=' input mode that does not exist in the schema (only 'url' is defined and required), which blurs rather than clarifies the 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?

States a specific verb and resource ('Static security review of an OpenAPI 3.x or Swagger 2.0 spec') and names the framework it maps to (OWASP API Security Top 10 2023). The sibling set is all config-file checkers (nginx, sshd, redis...), so an agent can immediately tell this is the one for OpenAPI/Swagger documents.

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 scope of the audit is spelled out in detail and the input format is stated ('spec= JSON or YAML text, or url='), which makes the when-to-use condition clear. It stops short of explicit exclusions or naming a sibling to prefer when the target is not an API spec, so it lands at 4 rather than 5.

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