Skip to main content
Glama

Get a Weaviate RBAC role

weaviate_role_get
Read-only

Retrieve a Weaviate RBAC role by cluster and exact role name to inspect its action permissions and applicable collection or other scopes.

Instructions

Get a Weaviate RBAC role

Returns the selected name and native permission objects, including action and applicable collection or other scopes. Obtain the nonempty identifier from weaviate_roles_list; 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>",
      "role": "<role>"
    },
    "name": "weaviate_role_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleYesNonempty role-name string from weaviate_roles_list; use the exact returned name.
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
nameYes
operationIdNo
permissionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 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."
    • addedInput schema / properties / role / description
      Added value: +"Nonempty role-name string from weaviate_roles_list; use the exact returned name."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "WeaviatePermission_depth15": {
      +      "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"
      +    }
      +  },
      +  "additionalProperties": false,
      +  "properties": {
      +    "name": {
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "operationId": {
      +      "type": "string"
      +    },
      +    "permissions": {
      +      "items": {
      +        "$ref": "#/$defs/WeaviatePermission_depth15"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "name",
      +    "permissions"
      +  ],
      +  "type": "object"
      +}
  2. First observedv0.4.3

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is covered; the description nonetheless adds error behavior (409 for unsupported engines, 404 for missing clusters) and summarizes the return payload. It stops short of describing authorization requirements or failure modes for an unknown role name.

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?

Three short sentences, front-loaded with the verb and followed by return shape and error behavior. The opening line duplicates the title, but no sentence is otherwise wasted.

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 annotations, a full input schema, and an output schema present, the description need not explain return values in depth. Adding error semantics and the identifier prerequisite covers the remaining gaps; only per-parameter nuance is left entirely to the schema.

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 coverage is 100% and the schema already documents role, cluster, and namespace thoroughly, including the guidance to use the exact name from weaviate_roles_list. The description restates the role requirement but adds nothing about namespace or cluster semantics beyond what the schema provides, so baseline 3 applies.

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+resource ('Get a Weaviate RBAC role') and clarifies what is returned (name plus native permission objects with action and scopes). The reference to weaviate_roles_list as the source of the identifier hints at the list/get split, but it is framed as a prerequisite rather than an explicit contrast with the sibling tool.

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?

Tells the agent the precondition for calling: the role string must be a nonempty identifier obtained from weaviate_roles_list. It does not state explicit when-not conditions or name other alternatives, but the usage context is clear enough to select it correctly.

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