Skip to main content
Glama

give_permission

Grant a user a specific role (Admin, Editor, Viewer) on a target workspace, profile, or channel.

Instructions

Grant a user a role on a target (hub profile, workspace, channel, etc.).

workspace_id: target workspace ID — get available IDs from list_workspaces()
target_type: "HubProfile", "Workspace", or "Channel"
role_id: 1 = Admin, 2 = Editor, 3 = Viewer

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
role_idYes
user_idYes
target_idYes
target_typeYes
workspace_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.18

TDQS

A3.8/5.0
Behavior3/5

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

The description states the core effect of granting a role, and annotations confirm it is not read-only or destructive. However, it does not mention whether the operation replaces an existing role, whether admin rights are required, or any other side effects.

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 brief, direct, and free of unnecessary words. The parameter explanations are compact and easy to scan, with clear formatting.

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?

For a simple permission-granting action, the description provides enough context to understand the target types and role values. Since an output schema is available, return values need not be described, though potential errors or prerequisites are not mentioned.

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?

The description explains role_id mapping and target_type values, and points to list_workspaces() for workspace_id. However, user_id and target_id are only implicitly described; the relationship between target_id and target_type is not fully explicit, and no parameter descriptions exist in the schema.

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 clearly states the action ('Grant a user a role on a target') and specifies the valid target types (hub profile, workspace, channel). It is immediately distinct from sibling tools like delete_permission or can_manage_permissions.

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 implies when to use the tool (when granting a role) but does not explicitly contrast it with alternatives such as delete_permission or permission group tools. It provides useful cross-references for workspace IDs but not explicit when-not-to-use guidance.

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