Skip to main content
Glama

Read a MySQL application user

mysql_user_get
Read-onlyIdempotent

Inspect a MySQL application account to retrieve its host, connection limits, lock status, password retention and proxy routing. Use the account name from mysql_users_list; missing accounts return 404.

Instructions

Read a MySQL application user

Returns account attributes including host, maxUserConnections, locked, passwordRetained and routableThroughProxy, never password material. Select name from mysql_users_list; an absent account returns 404.

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": {
      "cluster": "<cluster>",
      "user": "<user>"
    },
    "name": "mysql_user_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
userYesApplication account name matching [A-Za-z_][A-Za-z0-9_]{0,31}, without a host suffix; use name from mysql_users_list.
clusterYesManaged cluster name; the RBAC object is namespace/cluster.
namespaceNoNamespace of the requested object; defaults to default for single-object routes and creation. On collection routes (/clusters, /operations, /events, /events/stream, /orphaned-volumes, /backup-storages and root /metrics), absence includes all authorized namespaces and a value filters to that namespace. A nonexistent explicit namespace returns 404 not_found with resource namespace and its name only when the authenticated caller has a permission in that namespace. Otherwise collections remain empty and object requests retain their normal 403 response without revealing existence. Public and unauthenticated authentication routes do not resolve the parameter.

Output Schema

NameRequiredDescriptionDefault
hostYes
nameYes
lockedYes
operationIdNo
passwordRetainedYes
maxUserConnectionsYes
routableThroughProxyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • removedInput schema / $defs / NamespaceName
      Removed value: -{
      -  "description": "Project namespace name, 2–32 lowercase letters, digits or hyphens; starts with a letter and ends with a letter or digit. The existing default namespace is reserved.",
      -  "maxLength": 32,
      -  "minLength": 2,
      -  "pattern": "^[a-z][a-z0-9-]{0,30}[a-z0-9]$",
      -  "type": "string"
      -}
    • addedInput schema / $defs / NamespaceName_depth16
      Added value: +{
      +  "description": "Project namespace name, 2–32 lowercase letters, digits or hyphens; starts with a letter and ends with a letter or digit. The existing default namespace is reserved.",
      +  "maxLength": 32,
      +  "minLength": 2,
      +  "pattern": "^[a-z][a-z0-9-]{0,30}[a-z0-9]$",
      +  "type": "string"
      +}
    • addedInput schema / properties / cluster / description
      Added value: +"Managed cluster name; the RBAC object is namespace/cluster."
    • changedInput schema / properties / namespace / $ref
      Previous value: -"#/$defs/NamespaceName"New value: +"#/$defs/NamespaceName_depth16"
    • addedInput schema / properties / namespace / description
      Added value: +"Namespace of the requested object; defaults to default for single-object routes and creation. On collection routes (/clusters, /operations, /events, /events/stream, /orphaned-volumes, /backup-storages and root /metrics), absence includes all authorized namespaces and a value filters to that namespace. A nonexistent explicit namespace returns 404 not_found with resource namespace and its name only when the authenticated caller has a permission in that namespace. Otherwise collections remain empty and object requests retain their normal 403 response without revealing existence. Public and unauthenticated authentication routes do not resolve the parameter."
    • addedInput schema / properties / user / description
      Added value: +"Application account name matching [A-Za-z_][A-Za-z0-9_]{0,31}, without a host suffix; use name from mysql_users_list."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "host": {
      +      "enum": [
      +        "%"
      +      ],
      +      "type": "string"
      +    },
      +    "locked": {
      +      "type": "boolean"
      +    },
      +    "maxUserConnections": {
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "name": {
      +      "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,31}$",
      +      "type": "string"
      +    },
      +    "operationId": {
      +      "type": "string"
      +    },
      +    "passwordRetained": {
      +      "type": "boolean"
      +    },
      +    "routableThroughProxy": {
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "name",
      +    "host",
      +    "maxUserConnections",
      +    "locked",
      +    "passwordRetained",
      +    "routableThroughProxy"
      +  ],
      +  "type": "object"
      +}
  2. First observedv0.4.3

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the bar is met, but the description adds genuinely useful context beyond them: the exact account attributes returned, an explicit guarantee that password material is never included, and 404 on absent accounts. Only the output schema's shape and the namespace-resolution nuances are left to structured fields.

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, each earning its place: identity, return payload plus security guarantee, then the prerequisite and error behavior. Front-loaded and free of padding.

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 single-object read with an output schema and fully described parameters, the description covers what an agent needs to call it correctly and interpret a 404. It could say slightly more about how the namespace parameter affects lookup, but the schema already carries that detail.

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 100%, so host-suffix stripping, name pattern, cluster format and namespace semantics are all documented in the schema. The description's note about sourcing the name from mysql_users_list largely repeats what the schema's user parameter already says, so it adds little new meaning.

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?

States a specific verb and resource ("Read a MySQL application user") and immediately distinguishes it from the collection sibling by pointing at mysql_users_list for name lookup. An agent can tell it apart from mysql_users_list without opening either schema.

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?

"Select name from mysql_users_list; an absent account returns 404" tells the agent the prerequisite step and what happens on a miss, which is real when-to-use guidance. It stops short of naming any exclusion or alternative retrieval path, so it is clear rather than exhaustive.

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