Skip to main content
Glama

security_oauth_check

Read-only

OAuth / OpenID Connect discovery checker — Fetch and audit an authorization server's discovery document: OpenID Connect /.well-known/openid-configuration, falling back to RFC 8414 /.well-known/oauth-authorization-server (path-aware). Returns issuer, every endpoint (authorize, token, userinfo, jwks, registration, revocation, introspection, end-session, device, PAR), response/grant types, PKCE methods, token auth methods, id_token algs, DPoP algs, scopes and claims counts, plus a JWKS summary (key count, kty/alg, missing kids, published private key material). Flags issuer mismatch, non-https endpoints, missing or plain-only PKCE, implicit flow and password grant (removed in OAuth 2.1), alg none, HMAC-only signing, no public-client option. mcpAuth tells whether MCP clients can sign in on their own (PKCE S256 + authorization_code + dynamic client registration or client ID metadata documents). Verdict OK / REVIEW / RISK / CRITICAL. issuer = issuer URL (or the full .well-known URL). For a deep key audit use /v1/security/jwks-check. Not charged when no metadata is found (422). Price: $0.004 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": {
      "issuer": "<issuer>"
    },
    "name": "security_oauth_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
issuerYeshttps://accounts.google.com

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only cover read-only/open-world safety; the description adds substantial behavior beyond them: the discovery fallback to RFC 8414 with path awareness, the full inventory of returned fields, the specific risk flags raised, the mcpAuth interpretation, and the four-level verdict scale. Cost, no-charge-on-422 semantics, and the 422 failure mode are also disclosed.

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?

Front-loaded with purpose and path-fallback behavior, then returns, then flags, then the alternate tool and price. It is dense and long, with a few extended enumerations of endpoints and flags that border on padding, but no sentence is truly wasted.

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?

No output schema exists, so the description must describe returns, and it does so thoroughly (endpoints, grants, PKCE methods, JWKS summary, verdict levels) along with cost and the no-metadata case. An agent has everything needed to call it correctly and interpret results.

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 coverage is 100% and there is a single required parameter, so the schema already carries the baseline. The description nonetheless adds real meaning by stating issuer may be either a bare issuer URL or a full .well-known URL, which the schema's example alone does not make clear.

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 ('Fetch and audit an authorization server's discovery document') with concrete scope: which well-known paths are probed and in what fallback order. It also distinguishes itself from the sibling security_jwks_check by naming it as the deep key-audit alternative.

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?

Explicitly routes deep key auditing to /v1/security/jwks-check, so the agent knows when to prefer an alternative. Pricing and the 'not charged when no metadata is found (422)' note set invocation expectations, though there is no guidance on when not to run this at all.

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