Skip to main content
Glama

Governance List Grants To Role

governance_list_grants_to_role
Read-onlyIdempotent

Lists all privileges granted to a specified Snowflake role, with an option to include hierarchy and inspect inherited access.

Instructions

List privileges granted to a specific role. Set include_hierarchy to append INCLUDE HIERARCHY. https://docs.snowflake.com/en/sql-reference/sql/show-grants

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": {
      "role_name": "<role_name>"
    },
    "name": "governance_list_grants_to_role"
  }
}

Input Schema

NameRequiredDescriptionDefault
role_nameYesQuote names that aren't all uppercase, exactly as list tools return them.
include_hierarchyNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.3.0
    • addedInput schema / properties / include_hierarchy
      Added value: +{
      +  "default": false,
      +  "type": "boolean"
      +}
  2. Changed1 schema field changedv3.0.0
    • addedInput schema / properties / role_name / description
      Added value: +"Quote names that aren't all uppercase, exactly as list tools return them."
  3. Addedv2.0.4

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so the safety profile is covered. The description adds that include_hierarchy appends an INCLUDE HIERARCHY clause, which is genuine behavioral context, but it says nothing about output shape, size limits, or what happens when a role name does not exist. With annotations carrying the safety burden, this is adequate but not rich.

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?

Two short sentences plus a documentation URL, with the core purpose front-loaded. Nothing is padded, though the trailing URL is only marginally useful versus a one-line clarification of the hierarchy option's effect.

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

Completeness3/5

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

An output schema exists, so return values need not be described, and annotations cover the safety profile. However, for a tool surrounded by similarly named grant-listing siblings, the definition leaves the key disambiguation (grants granted TO a role vs grants OF a role, and vs database-role variants) entirely unstated.

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 50%: role_name is documented in the schema itself (including the quoting rule), while include_hierarchy has no schema description but is explained in the description as appending INCLUDE HIERARCHY. That compensates for the gap, but the phrasing is a restatement of the SQL clause rather than explaining the resulting semantics (e.g., that it includes privileges inherited through the role hierarchy), so it lands at baseline rather than above it.

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 and resource: 'List privileges granted to a specific role.' An agent can tell this is a read of privileges attached to a role, but the description does not distinguish it from near-identical siblings such as governance_list_grants_of_role or governance_list_grants_to_database_role, which differ in direction (grants of a role vs privileges granted to it).

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance and no mention of alternatives or prerequisites. The only actionable instruction is how to toggle hierarchy, which is parameter usage rather than tool selection guidance. An agent must infer from the name alone whether to pick this tool over governance_list_grants_of_role.

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