Skip to main content
Glama

superset_dashboard_grant_role_access

Grant a role access to a dashboard by automatically adding datasource permissions for all its datasets. Supports dry-run to preview changes before applying.

Instructions

Grant a role access to a dashboard by automatically finding all dashboard datasets and adding datasource_access to the role's permissions.

The tool automatically:

  1. Finds all datasets used by the dashboard's charts

  2. Finds permission_view_menu_id for datasource_access of each dataset

  3. Checks which permissions the role already has

  4. Adds missing datasource_access to the role's existing permissions

  5. Checks for RLS rules on the datasets and warns if missing

Without confirm_grant=True, shows the action plan (dry-run).

Args: dashboard_id: Dashboard ID (from dashboard_list). role_id: ID of the role to grant access to (from role_list). confirm_grant: True to apply changes. False for dry-run only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
role_idYes
dashboard_idYes
confirm_grantNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

With no annotations provided, the description carries the full burden, and it excels: it enumerates the five automatic steps, explains how existing permissions are checked, warns about RLS rules, and clearly describes the dry-run vs. apply behavior controlled by confirm_grant. This gives the agent a strong understanding of side effects and safeguards.

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 description is well-structured with a lead sentence, a numbered list of automatic actions, and an Args section. It is somewhat verbose for the numbered steps, but each step earns its place by explaining the tool's internal logic, which is valuable for the agent. Overall, it is not excessively long and front-loads the core purpose.

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

Completeness5/5

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

Given the tool's complexity and lack of annotations, the description is remarkably complete. It covers the full workflow, the confirmation/dry-run mechanism, and the RLS warning—topics an agent needs to invoke the tool safely. An output schema exists, so the absence of return-value details is acceptable. No critical gaps remain.

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 description coverage is 0%, so the description must add meaning. It explains dashboard_id and role_id with source hints (from dashboard_list/role_list) and clarifies confirm_grant as 'True to apply changes. False for dry-run only.' This goes beyond the raw parameter names and types, though it could provide even more detail about expected formats or lookup methods.

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 a specific verb and resource: 'Grant a role access to a dashboard by automatically finding all dashboard datasets and adding datasource_access to the role's permissions.' This clearly distinguishes it from siblings like superset_dashboard_revoke_role_access and superset_role_permission_add by emphasizing automatic dataset discovery.

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?

The description provides clear context by explaining the automated workflow and the dry-run behavior via confirm_grant, and mentions where to obtain IDs ('from dashboard_list', 'from role_list'). However, it does not explicitly state when to prefer this tool over alternatives like directly adding permissions with superset_role_permission_add, so no exclusionary guidance is given.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bintocher/mcp-superset'

If you have feedback or need assistance with the MCP directory API, please join our Discord server