Skip to main content
Glama

Governance Grant Privileges

governance_grant_privileges

Grants privileges on a Snowflake object to a role or database role. Requires confirmation to prevent unintended access changes.

Instructions

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

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 readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=true, so the safety profile is covered. The description adds one genuinely useful behavioral fact beyond them, that confirmation is required, but leaves it vague (is the confirm flag mandatory, and what happens if it is omitted given the false default?) and says nothing about reversibility or failure modes.

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 compact sentences plus a reference link, with the core action front-loaded. Nothing is wasted, though the brevity comes at the cost of the parameter and prerequisite detail an agent needs.

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 no explanation, but for a 7-parameter privileged mutation with 29% schema coverage the description is too thin. It omits the confirm flag mechanics, valid privileges/object_type values, and any contrast with revoke or future-grant siblings.

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 coverage is only 29% across 7 parameters, and the description documents none of them. The phrase 'to a role or database role' hints at valid grantee_kind values, but privileges, object_type, object_name and with_grant_option receive no added meaning, leaving the agent dependent on an incomplete schema.

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 privileges on an object') plus the grantee kinds ('a role or database role'), which separates it from grant_role_to_user and grant_database_role. It does not name the closest sibling, grant_future_privileges, so the object-vs-future distinction must be inferred from the phrase 'on an object'.

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?

'Requires confirmation' is the only usage constraint offered, and it never says how confirmation is supplied or when to prefer this tool over granting future privileges or revoking. The 'on an object' phrasing implicitly scopes it to existing objects, which is weak but non-zero guidance.

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