Skip to main content
Glama

check_permissions

Shows the connected MySQL account’s privileges and read-only status so you can verify whether writes are possible before running queries and confirm database security.

Instructions

Show the connected MySQL account's privileges and whether it is read-only. Call this when the user asks about database security, or to verify that writes are impossible before running queries. If read_only is false, the account CAN modify data — recommend switching to a SELECT-only account.

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": "check_permissions"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the disclosure burden and does well: it reveals the two returned signals (privileges, read_only) and explains how to interpret read_only=false, including the recommended remediation. It does not explicitly state that the call itself is non-mutating or whether any privilege is required to invoke it, which is the only remaining gap.

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?

Three short sentences, front-loaded with what the tool returns, then when to call it, then how to act on a negative result. No filler or restatement of the tool name.

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?

For a zero-parameter tool with no output schema and no annotations, the description covers purpose, trigger conditions, return signals, and interpretation guidance. Only minor details are absent, such as the shape of the privileges list (e.g. GRANT statements) or whether the call itself needs elevated access.

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

Parameters4/5

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

The tool takes zero parameters, so the baseline is 4; there is no argument semantics to explain and the description correctly spends its words on output meaning instead.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Show the connected MySQL account's privileges and whether it is read-only" gives a specific verb and two concrete resources. It is clearly distinct from the sibling set (list_tables, describe_table, query_table, ping), none of which report account-level privileges.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It names two concrete triggering situations: a user question about database security, and a pre-flight check that writes are impossible before running queries. It does not name an alternative tool or state when not to call it, so it stops short of the top band, but the usage context is unambiguous.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.