Skip to main content
Glama

Governance Revoke Role From User

governance_revoke_role_from_user
Destructive

Revokes a Snowflake role from a specified user after confirmation, removing that user's access granted through the role.

Instructions

Revoke a role from a user. Requires confirmation. https://docs.snowflake.com/en/sql-reference/sql/revoke-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_revoke_role_from_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.4/5.0
Behavior3/5

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

The annotations already declare destructiveHint=true, idempotentHint=false, and openWorldHint=true, so the safety profile is established without the description. The description adds only 'Requires confirmation', which is useful in that it signals that a confirm flag must be set. But it doesn't say what value satisfies that requirement or what happens when confirm is absent or false (for example, whether the call aborts or fails).

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 two sentences plus a documentation link, and the action statement is front-loaded. Nothing is padded. The bare URL is mildly useful but carries no inline explanation, so it does not earn its place as strongly as an explicit statement of prerequisites would.

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 explained. However, this is a destructive, non-idempotent mutation with an ambiguous confirm flag, and the description omits the consequences: whether the role must already be granted, whether active sessions are affected, and what an error looks like when confirmation is missing.

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%: role_name and user_name already carry quoting instructions, and only confirm is undocumented in the schema. The phrase 'Requires confirmation' partially fills that gap, but it never ties the requirement explicitly to the confirm boolean or states that confirm must be set to true. As a result, the description does not fully compensate for the inconsistency it creates between the requirement and the default of false.

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 (Revoke) and resource (a role from a user), which is enough to distinguish it from governance_grant_role_to_user. It does not, however, clarify how it differs from the similarly named governance_revoke_database_role, and the reader has to infer that distinction from the sibling catalog rather than from the description.

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?

Usage is only implied by the verb. There is no explicit guidance on when to prefer this tool over governance_revoke_database_role or governance_revoke_privileges, and no prerequisites such as owning the role or having the required privileges. The only conditional hint is 'Requires confirmation', which gestures at the confirm parameter but does not explain it.

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