Skip to main content
Glama

Governance Revoke Database Role

governance_revoke_database_role
Destructive

Revoke a Snowflake database role from a role or database role; confirmation is required to prevent accidental privilege removal.

Instructions

Revoke a database role from a role or database role. Requires confirmation. https://docs.snowflake.com/en/sql-reference/sql/revoke-database-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": {
      "database_role": "<database_role>",
      "grantee_kind": "<grantee_kind>",
      "grantee": "<grantee>"
    },
    "name": "governance_revoke_database_role"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNo
granteeYesQuote names that aren't all uppercase, exactly as list tools return them.
grantee_kindYes
database_roleYesQuote 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

A3.5/5.0
Behavior3/5

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

The annotations already declare destructiveHint=true, readOnlyHint=false, idempotentHint=false, and openWorldHint=true. The description adds the important confirmation requirement and a documentation link, but does not describe side effects such as what happens to dependent grants or authorization requirements.

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

Conciseness5/5

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

Two short sentences plus a documentation URL, with the core action front-loaded. There is no unnecessary wording, and the confirmation requirement is stated early.

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?

This is a destructive mutation tool with an output schema and rich annotations, so the description need not cover return values or safety hints. Still, it leaves a critical invocation gap by saying confirmation is required without explicitly directing the agent to pass confirm=true, and it does not enumerate grantee_kind values.

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%, with descriptions for database_role and grantee about quoting names. The description helps interpret grantee_kind by saying the grantee can be a role or database role, but it does not clarify valid values or explain that the confirm parameter must be set to true despite the default being 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?

The description uses a specific verb ('Revoke') and resource ('database role'), and clarifies that the database role is revoked from either a role or database role. It is clear enough to distinguish from the inverse governance_grant_database_role tool, though it does not name that sibling explicitly.

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?

It states a prerequisite ('Requires confirmation'), which gives some usage context. However, it does not explain when to use this instead of governance_grant_database_role or governance_revoke_role_from_user, nor does it say how confirmation must be supplied.

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