Skip to main content
Glama

update_a_role

Update an existing role in a Vika space by providing the space ID, role ID, and payload changes.

Instructions

Update 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>",
      "roleId": "<roleId>",
      "payload": "<payload>"
    },
    "name": "update_a_role"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleIdYesRole unit ID from the official API.
payloadYes
spaceIdYesSpace ID, usually starts with spc.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

C2.4/5.0
Behavior2/5

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

Annotations communicate that this is a mutating, closed-world operation (readOnlyHint false, openWorldHint false), but the description adds nothing beyond that: no mention of required permissions, whether payload is a full replace or a partial merge, or whether unspecified fields are cleared. For a mutation tool this is a meaningful gap.

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 resource front-loaded, but it is under-specified rather than concise — the brevity comes at the cost of not telling the agent what to put in payload.

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?

With three required parameters, a nested arbitrary-object payload, no output schema, and only 67% schema description coverage, the definition should explain the payload shape and update semantics. It supplies none of that, leaving the agent to guess at the most consequential argument.

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?

The description adds no meaning to any parameter. spaceId and roleId are covered by schema descriptions, but payload — the free-form nested object carrying the actual update fields — is described nowhere in either the schema or the description, despite being the substance of the call.

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

Purpose3/5

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

"Update a role in a space" gives a verb and resource, and the spatial scope (space) is a small addition to the name update_a_role, but it is essentially a restatement of the tool name. It says nothing about what parts of a role are updatable or how it differs from create_a_role/delete_a_role beyond the verb.

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 when-to-use guidance, no prerequisites, and no named alternatives. An agent must infer from the sibling list alone that this is the mutation path for an existing role rather than create_a_role or delete_a_role.

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