Skip to main content
Glama

List Weaviate RBAC roles

weaviate_roles_list
Read-only

List Weaviate RBAC role names and native permission objects, including actions and applicable scopes, so you can inspect roles and reuse names for role lookup.

Instructions

List Weaviate RBAC roles

Returns an unpaginated items array with names and native permission objects, including action and applicable scopes. Use returned names with weaviate_role_get; unsupported engines return 409 and missing clusters return 404.

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": {
      "cluster": "<cluster>"
    },
    "name": "weaviate_roles_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
clusterYesManaged cluster name; the RBAC object is namespace/cluster.
namespaceNoNamespace of the requested object; defaults to default for single-object routes and creation. On collection routes (/clusters, /operations, /events, /events/stream, /orphaned-volumes, /backup-storages and root /metrics), absence includes all authorized namespaces and a value filters to that namespace. A nonexistent explicit namespace returns 404 not_found with resource namespace and its name only when the authenticated caller has a permission in that namespace. Otherwise collections remain empty and object requests retain their normal 403 response without revealing existence. Public and unauthenticated authentication routes do not resolve the parameter.

Output Schema

NameRequiredDescriptionDefault
itemsYes
operationIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • removedInput schema / $defs / NamespaceName
      Removed value: -{
      -  "description": "Project namespace name, 2–32 lowercase letters, digits or hyphens; starts with a letter and ends with a letter or digit. The existing default namespace is reserved.",
      -  "maxLength": 32,
      -  "minLength": 2,
      -  "pattern": "^[a-z][a-z0-9-]{0,30}[a-z0-9]$",
      -  "type": "string"
      -}
    • addedInput schema / $defs / NamespaceName_depth16
      Added value: +{
      +  "description": "Project namespace name, 2–32 lowercase letters, digits or hyphens; starts with a letter and ends with a letter or digit. The existing default namespace is reserved.",
      +  "maxLength": 32,
      +  "minLength": 2,
      +  "pattern": "^[a-z][a-z0-9-]{0,30}[a-z0-9]$",
      +  "type": "string"
      +}
    • addedInput schema / properties / cluster / description
      Added value: +"Managed cluster name; the RBAC object is namespace/cluster."
    • changedInput schema / properties / namespace / $ref
      Previous value: -"#/$defs/NamespaceName"New value: +"#/$defs/NamespaceName_depth16"
    • addedInput schema / properties / namespace / description
      Added value: +"Namespace of the requested object; defaults to default for single-object routes and creation. On collection routes (/clusters, /operations, /events, /events/stream, /orphaned-volumes, /backup-storages and root /metrics), absence includes all authorized namespaces and a value filters to that namespace. A nonexistent explicit namespace returns 404 not_found with resource namespace and its name only when the authenticated caller has a permission in that namespace. Otherwise collections remain empty and object requests retain their normal 403 response without revealing existence. Public and unauthenticated authentication routes do not resolve the parameter."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "WeaviatePermission_depth14": {
      +      "additionalProperties": true,
      +      "properties": {
      +        "action": {
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "aliases": {
      +          "additionalProperties": true,
      +          "properties": {
      +            "alias": {
      +              "type": "string"
      +            },
      +            "collection": {
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "backups": {
      +          "additionalProperties": true,
      +          "properties": {
      +            "collection": {
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "collections": {
      +          "additionalProperties": true,
      +          "properties": {
      +            "collection": {
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "data": {
      +          "additionalProperties": true,
      +          "properties": {
      +            "collection": {
      +              "type": "string"
      +            },
      +            "object": {
      +              "type": "string"
      +            },
      +            "tenant": {
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "groups": {
      +          "additionalProperties": true,
      +          "properties": {
      +            "group": {
      +              "type": "string"
      +            },
      +            "groupType": {
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "namespaces": {
      +          "additionalProperties": true,
      +          "properties": {
      +            "namespace": {
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "nodes": {
      +          "additionalProperties": true,
      +          "properties": {
      +            "collection": {
      +              "type": "string"
      +            },
      +            "verbosity": {
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "replicate": {
      +          "additionalProperties": true,
      +          "properties": {
      +            "collection": {
      +              "type": "string"
      +            },
      +            "shard": {
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "roles": {
      +          "additionalProperties": true,
      +          "properties": {
      +            "role": {
      +              "type": "string"
      +            },
      +            "scope": {
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "tenants": {
      +          "additionalProperties": true,
      +          "properties": {
      +            "collection": {
      +              "type": "string"
      +            },
      +            "tenant": {
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "users": {
      +          "additionalProperties": true,
      +          "properties": {
      +            "users": {
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        }
      +      },
      +      "required": [
      +        "action"
      +      ],
      +      "type": "object"
      +    },
      +    "WeaviateRole_depth15": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "name": {
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "permissions": {
      +          "items": {
      +            "$ref": "#/$defs/WeaviatePermission_depth14"
      +          },
      +          "type": "array"
      +        }
      +      },
      +      "required": [
      +        "name",
      +        "permissions"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "additionalProperties": false,
      +  "properties": {
      +    "items": {
      +      "items": {
      +        "$ref": "#/$defs/WeaviateRole_depth15"
      +      },
      +      "type": "array"
      +    },
      +    "operationId": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "items"
      +  ],
      +  "type": "object"
      +}
  2. First observedv0.4.3

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely useful behavior beyond that: the result is unpaginated and each item carries native permission objects with action and applicable scopes, plus the 409/404 error semantics. It stops short of explaining ordering or any cluster/namespace scoping nuance, so it earns solid but not exceptional credit given the annotation coverage.

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?

The purpose is front-loaded in the first sentence, followed by return shape, routing, and error behavior in a logical order with no filler. The second sentence is dense — it packs the return format, the sibling handoff, and two HTTP error cases into one run-on — which slightly hurts scanability.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, the description need not explain return values, yet it still tells the agent the response is an unpaginated items array and what each item contains, and it documents the error cases. The only minor gap is that it says nothing about result ordering or whether empty results are possible when the namespace does not resolve, which the schema mentions but the description does not surface.

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%, and both parameters (cluster, namespace) already carry detailed descriptions including the reserved default namespace and the namespace-filtering rules for collection routes. The description adds no meaning beyond that, so the baseline 3 applies.

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 names a specific verb and resource ("List Weaviate RBAC roles") and immediately distinguishes the tool from its nearest sibling by stating that returned names feed into weaviate_role_get. An agent can tell this is a collection lister, not a single-role fetcher, without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a concrete downstream usage rule ("Use returned names with weaviate_role_get") and states the failure conditions — 409 for unsupported engines, 404 for missing clusters — which tells the agent when a call is expected to fail. It does not explicitly say when to avoid this tool versus the other RBAC listers in the catalog, which keeps it below a 5.

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