Skip to main content
Glama
ay-garg

OpenShift 4 MCP Server

add_cluster_role_to_group

Grant a ClusterRole to a group, defining permissions for cluster-wide resources in OpenShift.

Instructions

Grant a ClusterRole to a group via 'oc adm policy add-cluster-role-to-group'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
roleYes
groupYes
clusterNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.1

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries the full burden of disclosing behavioral traits. It states the grant action but does not mention that this mutates RBAC bindings, requires elevated permissions, is reversible, or what side effects may occur. The mention of the oc adm command adds some specificity but no operational consequences.

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

Conciseness5/5

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

The description is a single efficient sentence, front-loaded with the action and resource, and includes the underlying command as a useful reference. Every word contributes; there is no padding or redundancy.

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?

Although an output schema exists, this is a mutating tool with no annotations and three parameters, one of which is undocumented in both schema and description. The description offers no guidance on the cluster parameter, RBAC implications, prerequisites, or relationship to similar tools, leaving the agent to infer critical invocation context.

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 0%, so the description must compensate. It does clarify that 'role' refers to a ClusterRole and 'group' refers to a group, which maps directly to the two required parameters. However, the optional 'cluster' parameter is entirely unexplained, and no value formats or constraints are given, leaving a meaningful gap.

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

Purpose5/5

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

The description states a specific verb ('Grant') and resource ('a ClusterRole to a group'), and names the exact underlying OpenShift command. This clearly identifies what the tool does and distinguishes it from sibling tools like add_cluster_role_to_user, add_user_to_group, and create_role_binding.

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?

No guidance is given on when to use this tool versus alternatives such as add_cluster_role_to_user, add_user_to_group, or create_role_binding. The purpose is implied but there is no explicit context about prerequisites, when not to use it, or how it relates to other RBAC tools.

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