Skip to main content
Glama
rsp2k
by rsp2k

db_create_user

Create a new database user by specifying database ID and username. Set password, encryption type, or access level as needed to manage access.

Instructions

Create a new database user.

Args: database_id: The database ID or label username: Username for the new user password: Password (auto-generated if not provided) encryption: Password encryption type (MySQL: caching_sha2_password, mysql_native_password) access_level: Permission level (Kafka: admin, read, write, readwrite)

Returns: Created user information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
passwordNo
usernameYes
encryptionNo
database_idYes
access_levelNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.1

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It does reveal some behavior: password is auto-generated if not provided, encryption types are MySQL-specific, access levels are Kafka-specific. However, it omits critical behaviors such as what happens if the user already exists, whether database_id must reference an existing database, required permissions to execute the operation, and any side effects beyond creation. The description is functional but not fully transparent.

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?

The description is exceptionally concise and well-structured. It starts with a one-line purpose, followed by a clearly labeled 'Args' section listing each parameter with a brief explanation, and ends with a 'Returns' section. There is no fluff or redundancy; every line contributes to the tool's understanding.

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?

The description covers all parameters, explains defaults and valid values, and indicates the return type. It also implies multi-database support by mentioning MySQL and Kafka specifics. However, it lacks prerequisites (e.g., database must exist), error conditions, and any notes on idempotency or concurrency. Given the tool's simplicity and the presence of an output schema (not shown), the description is fairly complete but could benefit from a few more context notes.

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 schema has zero description coverage, so the description must compensate. It provides meaningful explanations for all five parameters: database_id ('ID or label'), username, password (with auto-generation default), encryption (with valid MySQL values), and access_level (with valid Kafka values). This adds significant value over the raw schema, though it could be more explicit about parameter formats or constraints (e.g., length limits, allowed characters).

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 states a clear verb and resource: 'Create a new database user.' It also lists the exact parameters, making the purpose unambiguous. While it doesn't explicitly differentiate from sibling tools like db_update_user or db_delete_user, the name and description together are sufficient for an agent to know it creates a user, not modifies or deletes one.

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?

The description implies when to use the tool (when you need to create a database user) but provides no explicit alternatives or exclusions. It does not mention, for example, that this tool is for creating users on existing databases, or that it should not be used for updating or deleting users. The parameter details (password auto-generation, encryption types, access levels) give some context, but there is no direct guidance on selecting this over related tools.

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