Skip to main content
Glama

Governance List Grants To User

governance_list_grants_to_user
Read-onlyIdempotent

Lists roles granted to a specific Snowflake user and optionally includes hierarchy to reveal inherited grants.

Instructions

List roles granted to a specific user. 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": {
      "user_name": "<user_name>"
    },
    "name": "governance_list_grants_to_user"
  }
}

Input Schema

NameRequiredDescriptionDefault
user_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 / user_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, idempotentHint, openWorldHint, and destructiveHint=false, so safety is covered. The description adds only that include_hierarchy 'appends INCLUDE HIERARCHY'—a cryptic reference to the underlying SQL—and offers a docs link, without explaining what the hierarchy expansion actually returns.

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 reference link, with the core purpose front-loaded. No redundant restatement of the tool name, though the SQL clause wording is opaque rather than informative.

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 and full annotations reduce the burden, and the docs link provides a fallback. Still, for a tool whose siblings differ only in grant target, the description omits routing guidance and leaves the hierarchy flag's semantics implicit.

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%: user_name is documented in the schema, while include_hierarchy is described only here. The description compensates minimally by naming the flag's effect, but 'append INCLUDE HIERARCHY' does not clarify that it includes indirectly granted roles, so the added meaning is thin.

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?

The description names a specific verb and resource ('List roles granted to a specific user'), which separates it from role/database-role variants such as governance_list_grants_to_role. It does not explicitly contrast with those siblings, so it falls short of a 5.

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 guidance on when to choose this tool over governance_list_grants_to_role, governance_list_grants_of_role, or governance_describe_user. The only conditional statement concerns the include_hierarchy flag, not tool selection.

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