Skip to main content
Glama

Create cluster rolebinding

k8s_create_cluster_rolebinding

Create a Kubernetes ClusterRoleBinding to grant cluster-wide permissions by binding a ClusterRole to users, groups, or service accounts.

Instructions

Create a ClusterRoleBinding.

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

Input Schema

NameRequiredDescriptionDefault
nameYes
contextNoNamed context of the multi-context pool to run against (see cm_multi_context list_contexts); the default context if omitted.
role_refNo
subjectsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

D1.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=true, so the description is not contradicting them. But it adds nothing beyond them: it never states that this operation grants permissions cluster-wide, whether an existing binding is overwritten or an error returned, or what happens if role_ref/subjects are omitted (both default to null).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single sentence is front-loaded and free of filler, but that brevity is achieved by omitting information rather than by efficient wording. There is nothing to trim, yet the sentence earns its place only marginally over the title.

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

Completeness1/5

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

This is a cluster-scoped RBAC mutation with four parameters, two of them free-form objects, and no output schema. A definition that says only 'Create a ClusterRoleBinding' leaves the agent without the object shape, overwrite behavior, or permission implications needed to invoke it correctly.

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

Parameters1/5

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

Schema description coverage is 25%: only the 'context' parameter is documented, while the two semantically critical parameters, role_ref and subjects, are undocumented schemas with additionalProperties=true and nullable defaults. The description supplies no meaning for them, leaving the agent to guess the expected RBAC object shape and whether null is meaningful.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description is the sentence "Create a ClusterRoleBinding." It restates the tool name and title verbatim and adds no scope or resource detail. It does not distinguish this tool from the namespaced sibling k8s_create_rolebinding, which an agent could easily confuse it with.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisite checks (e.g., that the referenced ClusterRole should already exist), and no mention of the alternative namespaced RoleBinding tool. The agent must infer usage entirely from the name.

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