Skip to main content
Glama

Governance Grant Role To User

governance_grant_role_to_user

Grants a role to a Snowflake user, requiring confirmation to support controlled access management.

Instructions

Grant a role to a user. Requires confirmation. https://docs.snowflake.com/en/sql-reference/sql/grant-role

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>",
      "user_name": "<user_name>"
    },
    "name": "governance_grant_role_to_user"
  }
}

Input Schema

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

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.3.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, non-idempotent, non-destructive open-world mutation. The description adds one genuinely useful behavior beyond that: the operation 'Requires confirmation', which explains why the confirm flag defaults to false. It does not say what happens when confirm is false (error vs. no-op), what privileges the caller needs, or that re-granting an existing grant is a no-op despite idempotentHint=false.

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 action and the confirmation requirement front-loaded. Nothing is wasted, though the extreme brevity leaves gaps that belong to other dimensions.

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

Completeness2/5

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

This is a security-sensitive privilege-granting mutation with no annotations covering required privileges (e.g., SECURITY ADMIN / MANAGE GRANTS) and no explanation of the confirmation flow, which is the one non-obvious interaction. The output schema and annotations cover the return shape and safety profile, but the missing authorization and confirm semantics leave it thin for this risk level.

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 67%, and the two required name parameters are already documented in the schema with quoting guidance. The description's 'Requires confirmation' is the only signal explaining the otherwise undescribed confirm parameter, but it doesn't say whether omitting it fails or silently skips the grant.

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 ('Grant a role to a user'), which is enough to distinguish it from revoke and list siblings. It does not explicitly contrast itself with governance_grant_database_role, so the role-vs-database-role distinction is left to the tool name.

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 use this versus governance_grant_database_role, governance_grant_privileges, or the list/revoke counterparts. The only usage-adjacent note is 'Requires confirmation', which is a precondition rather than a when-to-use rule.

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