Skip to main content
Glama

create_a_role

Create a new role within a Vika space to define permissions for its members. Specify the space ID and role payload to add customized access control to that space.

Instructions

Create a role in a space.

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": {
      "spaceId": "<spaceId>",
      "payload": "<payload>"
    },
    "name": "create_a_role"
  }
}

Input Schema

NameRequiredDescriptionDefault
payloadYes
spaceIdYesSpace ID, usually starts with spc.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

C2.6/5.0
Behavior2/5

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

Annotations only declare readOnlyHint=false and openWorldHint=false, so the description must carry the behavioral burden for a mutation. It does not say what the payload must contain, whether the role is immediately effective, whether permissions are required, or what is returned. Only the bare fact of scope (a space) is added.

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?

A single short sentence with no filler and the key scope front-loaded, but its brevity reflects under-specification rather than efficiency. Nothing is wasted because almost nothing is said.

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?

For a write tool taking a nested free-form payload and returning no output schema, a six-word sentence is far from complete. The agent cannot determine the payload contract, permission requirements, or success behavior from this definition.

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?

spaceId is documented in the schema (50% coverage), but payload is an unconstrained free-form object whose shape is the crux of the operation, and the description says nothing about it. The description adds no meaning beyond the schema for the one parameter that actually needs explanation.

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 names a specific verb and resource ("Create a role") and adds scope ("in a space"). It is clearly distinguishable from delete_a_role and update_a_role by verb, though it does nothing to differentiate itself from other create_* siblings beyond the resource noun.

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 on when to use this versus update_a_role or create_a_team, no stated prerequisites (e.g. required permissions on the space), and no note on what happens if a role with the same name already exists. The agent must infer everything from the name.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.