Skip to main content
Glama

Create role

k8s_create_role

Create a Kubernetes Role with custom rules to define namespace permissions. Specify the role name, rules, and optional namespace or context for the target cluster.

Instructions

Create a Role with specified rules.

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_role"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

C2.7/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 bar is lower, but the description adds nothing about namespace scoping, required RBAC permissions, or whether an existing Role is replaced or rejected. For a mutating cluster-facing tool, this leaves the behavioral profile thin.

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?

One short, front-loaded sentence with no wasted wording. The problem is under-specification rather than verbosity, so it scores well on structure alone.

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?

This is a mutating tool with 4 parameters, low schema coverage, and no output schema. The definition should explain at minimum the namespace scope and the shape of 'rules', but it does not.

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 25% across 4 parameters. The description mentions only the 'rules' concept and says nothing about 'name', 'namespace', or 'context'. It therefore does not make up for the low coverage, even though 'context' is documented in 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 states a specific verb and resource: 'Create a Role'. The resource name 'Role' is precise Kubernetes vocabulary that distinguishes it from rolebinding or cluster-scoped variants, though the description does not explicitly say so. It is clear but has no sibling differentiation.

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?

The description gives no when-to-use guidance, no prerequisites, and no alternatives (such as the aggregated cluster role tool). The agent must infer usage from the name alone.

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