Skip to main content
Glama

generate_pkce

Generate a PKCE code verifier and challenge pair for OAuth2 Authorization Code flow, then build the authorization URL.

Instructions

Generate a PKCE (Proof Key for Code Exchange) code verifier and challenge pair for OAuth2 Authorization Code flow. Also builds the authorization URL.

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": {
      "authorization_endpoint": "<authorization_endpoint>",
      "client_id": "<client_id>",
      "redirect_uri": "<redirect_uri>"
    },
    "name": "generate_pkce"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopeNo
stateNo
client_idYes
redirect_uriYes
authorization_endpointYesOAuth2 authorization endpoint URL

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.6-beta

TDQS

C2.9/5.0
Behavior2/5

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

No annotations exist, so the description carries the full burden of disclosure, and it omits key traits: whether generation is random per call (non-idempotent), which PKCE method (S256 vs plain) is used, whether the verifier is returned for later token exchange, and whether the authorization URL is returned as a string. Only the dual nature of the output is mentioned.

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, front-loaded with the primary artifact. The second sentence ('Also builds the authorization URL') is somewhat under-specified rather than wasteful, so the size is fine but the structure could separate inputs from outputs more clearly.

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?

With five parameters, no annotations, no output schema, and 20% schema coverage, this definition is not complete enough: an agent cannot tell what the return value looks like (verifier? challenge? URL?), which PKCE method is applied, or how optional params influence the URL. For a crypto/URL-building tool the missing return shape is a significant gap.

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

Parameters2/5

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

Schema coverage is only 20%; only authorization_endpoint has a schema description, leaving scope, state, client_id and redirect_uri undocumented. The description does not compensate for this at all — it never explains that scope/state are optional inputs that get embedded in the generated URL, or what effect omitting state has.

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?

The description names a specific cryptographic resource (PKCE code verifier and challenge pair) and a concrete output artifact (authorization URL), so an agent knows exactly what it produces. It doesn't differentiate from siblings like generate_crud_requests or compute_digest_auth, but the verb+resource specificity is high.

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

Usage Guidelines3/5

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

The description states the context of use (OAuth2 Authorization Code flow), which implies when to reach for it, but never says when not to use it or names an alternative for related OAuth tasks. Usage must be inferred from the protocol reference.

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