Skip to main content
Glama
Keycloak MCP Server

Keycloak MCP Server

by Cayetano97

upload_identity_provider_certificate

Upload an identity provider certificate or JWKS to a Keycloak realm and generate the associated public key or JWKS representation for configuration.

Instructions

Uploads a certificate, prepares the jwks or public key associated, and returns the certificate representation. Requires Keycloak 26.5+.

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": {
      "realm": "<realm>",
      "upload": "<upload>"
    },
    "name": "upload_identity_provider_certificate"
  }
}

Input Schema

NameRequiredDescriptionDefault
realmYesRealm name
uploadYesMultipart form fields: file (certificate or JWKS content as text, or file_base64 for binary content)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations at all, the description carries the full behavioral burden. It does disclose genuine behavior beyond the name (JWKS/public-key preparation and that it returns the certificate representation) and the 26.5+ requirement, but it omits permission needs, whether an existing certificate is replaced, and idempotency, which matter for a mutation.

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 short sentences, front-loaded with the action and effect, and the version prerequisite is placed at the end. No filler, though the return-value clause is vague ("certificate representation").

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

Completeness3/5

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

For a mutation tool with a nested multipart parameter and no output schema, the description covers the action and version gate but leaves out the return shape, permission requirements, and overwrite semantics. Also unclear how the target identity provider is identified given only realm and upload.

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%, so realm and the nested upload object are already documented as file versus file_base64. The description's mention of JWKS/public key content adds slight context about what the upload may contain, but nothing about formats or validation beyond the schema.

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 pairs a specific verb ("Uploads") with a specific resource (a certificate for an identity provider) and adds the side effect of preparing the associated JWKS or public key. It is clear what the tool does, though it never explicitly states how it differs from the client-certificate sibling tools.

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?

Usage is only implied: it is an identity-provider certificate upload, and the version prerequisite (Keycloak 26.5+) is stated. There is no guidance on when to prefer this over upload_client_certificate_and_key/only or reload_identity_provider_keys, and no exclusions.

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

Deploy Server

Other Tools