Skip to main content
Glama

list_roles

Read-only

Retrieve and list the roles defined in a specified Vika space. Use it to review available roles and their details for access or permission management.

Instructions

List roles for 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>"
    },
    "name": "list_roles"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNumNo
spaceIdYesSpace ID, usually starts with spc.
pageSizeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

C2.7/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds nothing beyond that: no note on pagination behavior, default page size, ordering, or what a returned role contains. With annotations carrying the safety burden the bar is lower, but the description still contributes no behavioral context.

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?

A single front-loaded sentence with no filler or redundancy. It is efficient, but the terseness is under-specification rather than disciplined concision given the tool's pagination surface.

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 paginated list tool with no output schema and only a third of parameters documented, the description should say how paging works and roughly what is returned. As written, an agent knows the resource but not how to retrieve it completely or what to expect back.

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 description coverage is only 33% — spaceId is documented in the schema, but pageNum and pageSize have no description anywhere. The description's phrase 'for a space' merely restates the required parameter and does not compensate for the undocumented pagination parameters (defaults, max pageSize of 1000, whether results are paged at all).

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?

States a specific verb and resource plus a scope: list roles for a space. An agent can distinguish this from create_a_role, delete_a_role, and list_teams by the verb and noun, though the description never explicitly names or rules out those siblings.

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 when-to-use or when-not-to-use guidance, no mention of prerequisites (e.g., permissions or that spaceId must be valid), and no pointer to alternatives such as list_units_under_the_role or get_a_member for adjacent lookups. Usage must be inferred entirely from the name.

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