Skip to main content
Glama

Governance Revoke Privileges

governance_revoke_privileges
Destructive

Revoke specified privileges on a Snowflake object from a grantee, with a required confirmation step to prevent unintended access changes.

Instructions

Revoke privileges on an object. Requires confirmation. https://docs.snowflake.com/en/sql-reference/sql/revoke-privilege

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": {
      "privileges": "<privileges>",
      "object_type": "<object_type>",
      "grantee_kind": "<grantee_kind>",
      "grantee": "<grantee>"
    },
    "name": "governance_revoke_privileges"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNo
granteeYesQuote names that aren't all uppercase, exactly as list tools return them.
privilegesYes
object_nameNoQuote names that aren't all uppercase, exactly as list tools return them.T
object_typeYes
grantee_kindYes
grant_option_forNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.3.0

TDQS

C2.8/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=false, and openWorldHint=true, so the risk profile is largely covered. The description adds the meaningful operational note that a confirmation step is required, but says nothing about what access is required to revoke, whether a partial revoke is possible, or how the confirm flag gates execution.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences plus a doc link, front-loaded with the action and followed by the confirmation constraint. There is little waste, but the brevity comes at the cost of the specification needed for a 7-parameter destructive tool.

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?

An output schema exists, so return values need not be explained, but a destructive revoke with 7 parameters and 4 required fields needs more than 'revoke privileges' and 'requires confirmation'. It gives no detail on valid object_type/grantee_kind values (neither is an enum), privilege naming, or confirm semantics.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 29% across 7 parameters; only grantee and object_name carry inline descriptions. The description adds no meaning for privileges, object_type, grantee_kind, grant_option_for, or confirm, so half the surface remains undocumented in both schema and description.

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?

Names a specific verb and resource ("Revoke privileges on an object"), so the agent knows the operation is a privilege removal. It does not differentiate against the close siblings governance_revoke_future_privileges or governance_revoke_role_from_user, leaving the exact scope of 'object privileges' to inference.

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?

"Requires confirmation" is procedural detail rather than guidance about when to pick this tool over governance_grant_privileges or the future-privileges variant. No when-not conditions, no prerequisites (ownership/privilege requirements to revoke), and no mention of how it relates to the list_grants_* tools for verifying current grants.

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