Skip to main content
Glama

create_role_permission

Creates a CloudStack role permission rule that maps an API name or wildcard pattern to allow or deny access.

Instructions

Create a role permission rule

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": {
      "roleid": "<roleid>",
      "rule": "<rule>",
      "permission": "<permission>"
    },
    "name": "create_role_permission"
  }
}

Input Schema

NameRequiredDescriptionDefault
ruleYesAPI name or wildcard pattern
roleidYesRole ID
permissionYesPermission (allow, deny)
descriptionNoPermission description

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

C2.3/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, yet it only implies a write via the verb 'create'. It does not disclose required permissions, whether an existing rule gets overwritten, whether wildcard rules can shadow others, or what an error (e.g. unknown roleid) looks like.

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?

It is a single short sentence with nothing superfluous, but its brevity comes from under-specification rather than efficiency — there is no front-loaded scope or constraint that would help an agent act.

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 mutation tool with four parameters, three of them required, no annotations, and no output schema. A one-line restatement of the name leaves the agent without the permission prerequisites, idempotency/overwrite semantics, or failure behavior it needs to call it safely, even though the parameter schema itself is well documented.

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%, so the schema already documents rule (API name or wildcard pattern), roleid, permission (allow/deny), and description. The description adds no meaning beyond the schema; per the high-coverage baseline, a 3 is appropriate.

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 'Create a role permission rule' essentially restates the tool name (create_role_permission) with no added scope, no statement of what a 'rule' contains, and no differentiation from the sibling mutators update_role_permission and delete_role_permission.

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 guidance on when to use this tool versus update_role_permission (modify an existing rule) or create_role (create the role itself first). The prerequisite of an existing roleid is not mentioned, and no exclusions are given.

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