Skip to main content
Glama

Governance List Database Roles

governance_list_database_roles
Read-onlyIdempotent

List database roles in a Snowflake database to review role assignments and governance. Returns each role with quoted names for accurate SQL use.

Instructions

List database roles in a database. https://docs.snowflake.com/en/sql-reference/sql/show-database-roles Each row also has quoted_name, the name in double quotes, and, when the row has a database and schema, quoted_qualified_name.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "governance_list_database_roles"
  }
}

Input Schema

NameRequiredDescriptionDefault
databaseNoQuote 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?

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds useful detail about row contents (quoted_name and conditional quoted_qualified_name), but since an output schema exists this is supplemental rather than essential, and it says nothing about pagination, filtering defaults, or permissions.

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 core purpose is front-loaded in the first sentence, and the remaining sentences add return-value context without padding. Including a raw documentation URL is slightly noisy but justified for a Snowflake-specific SQL mapping and costs one clause.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, additional return-value explanation is not required, and the annotations fully cover the safety profile; one optional parameter is fully documented in the schema. The only real gap is routing guidance against the sibling role/grants listing tools, which keeps it from a 5.

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 100% and the single optional parameter is documented in the schema, including the quoting convention. The description does not restate or extend the parameter's meaning beyond the return-value quoting hint, so baseline 3 applies.

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 ('List database roles in a database') and scopes it to a database, which distinguishes it from the account-level governance_list_roles sibling without naming it. It stops short of explicitly naming the alternative, so it is clear but not maximally differentiated.

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 phrase 'in a database' – the agent can infer this is the database-scoped role listing rather than the account-wide one. There is no explicit when-to-use, when-not-to-use, or named alternative (e.g., governance_list_roles or governance_list_grants_to_database_role).

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