Skip to main content
Glama

Governance Grant Database Role

governance_grant_database_role

Grants a Snowflake database role to a user, role, or database role, optionally with grant option, and requires confirmation before applying.

Instructions

Grant a database role to a role, database role, or user. Requires confirmation. https://docs.snowflake.com/en/sql-reference/sql/grant-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_grant_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.
with_grant_optionNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.3.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnly=false, destructive=false, idempotent=false and openWorld=true, so the safety profile is largely covered. The description adds one genuinely useful behavioral fact — that confirmation is required — but does not say what happens if confirm is false (error? dry run?), whether re-granting an existing role errors, or what privileges the caller needs. The doc URL is a pointer, not disclosure.

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 action stated first and the confirmation requirement immediately after. Nothing is padded, though the URL adds little for an agent that already has the tool installed.

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 no explanation here. However, for a non-idempotent, open-world mutation with a confirm flag defaulting to false, the definition never states what confirmation means operationally or what failure looks like — a meaningful gap for correct invocation.

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 description coverage is 40% over five parameters: grantee and database_role carry quoting guidance, while grantee_kind, confirm and with_grant_option are bare. The description's "role, database role, or user" partially supplies the missing grantee_kind value domain, but with_grant_option and the confirm mechanics remain unexplained 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?

The description gives a specific verb and resource ("Grant a database role") and enumerates the grantee types (role, database role, or user), which maps onto the grantee_kind parameter. It does not explicitly distinguish itself from governance_grant_role_to_user or governance_grant_privileges, so an agent must infer the boundary from the grantee-kind list.

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?

Beyond "Requires confirmation" there is no when-to-use guidance, no prerequisites (e.g., ownership/privilege needed to grant), and no routing to the sibling grant/revoke tools. The agent is left to infer everything about context of use.

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