Skip to main content
Glama
Keycloak MCP Server

Keycloak MCP Server

by Cayetano97

upload_client_certificate_only

Uploads a certificate to a Keycloak client attribute without changing the private key, allowing you to update only client certificate data.

Instructions

Upload only a certificate for a client attribute, without updating the private key.

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>",
      "client_uuid": "<client_uuid>",
      "attr": "<attr>",
      "upload": "<upload>"
    },
    "name": "upload_client_certificate_only"
  }
}

Input Schema

NameRequiredDescriptionDefault
attrYesCertificate attribute name
realmYesRealm name
uploadYesMultipart form fields: file (certificate content as text, or file_base64 for binary content) and keystoreFormat ("Certificate PEM", "Public Key PEM" or "JSON Web Key Set")
client_uuidYesClient UUID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full load; it does disclose the key behavioral trait that the private key is left untouched, which is the main side-effect boundary an agent needs. It says nothing about overwrite semantics for an existing certificate, required permissions, validation failures, or what is returned.

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?

A single front-loaded sentence with zero filler, and the most decision-relevant clause (the key is not updated) is placed last for emphasis. Nothing is wasted, though it is minimal even for one sentence.

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 4-parameter mutation tool with a nested object and no annotations or output schema, the description covers only the mutation boundary and leaves permissions, overwrite behavior, and response shape unaddressed. The rich schema compensates for parameter documentation, but the behavioral gap remains.

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 description coverage is 100%, including the nested 'upload' object with file/file_base64 and the keystoreFormat value list, so the baseline is 3. The description adds nothing beyond the schema — it does not explain the 'attr' targeting, the base64 alternative, or the format choices.

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?

Specific verb+resource: 'Upload only a certificate for a client attribute,' with the scope delimiter 'without updating the private key' that implicitly separates it from upload_client_certificate_and_key. The sibling is not named outright, so the differentiation is inferential rather than explicit.

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 'only ... without updating the private key' phrasing implies when to pick this over the certificate-and-key variant, but there is no explicit when-to-use/when-not statement or naming of the alternative tool. Prerequisites (realm, client_uuid, attr) are left entirely to the schema.

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