Skip to main content
Glama

create_role

Create a new role.

Args: name: Role name description: Role description slug: Role slug (URL-friendly identifier) project_key: Project key (tenant ID). Uses global tenant_id if not provided

Returns: JSON string with role creation result

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
slugYes
descriptionYes
project_keyNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description must disclose behavioral traits. It adds the detail that project_key uses global tenant_id if not provided, which is useful. However, it does not discuss side effects, permissions, duplicates, or error handling, leaving some transparency gaps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact and front-loaded, with a one-sentence purpose followed by a structured Args/Returns list. No words are wasted, and all lines contribute useful information.

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?

Given the tool has 4 parameters and no annotations, the description covers all parameters and notes the tenant fallback behavior. The return value is stated as a JSON string, and an output schema exists, so the vague return description is acceptable. Minor gaps remain around error cases and permissions.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the param list in the description carries the semantic burden. It provides meaningful glosses: slug is a 'URL-friendly identifier' and project_key is a 'tenant ID' with a default fallback. The name/description glosses are basic but confirm the role owner.

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 opens with 'Create a new role,' a specific verb+resource statement that clearly distinguishes this tool from siblings like create_permission or create_project. It immediately conveys the tool's purpose and the resource it operates on.

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

Usage Guidelines3/5

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

The description does not explicitly mention when to use this tool versus alternatives, nor does it list any exclusion criteria. However, the clear 'Create a new role' statement implies the primary use case, and the sibling tools are distinct enough that the intended usage is inferable.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources