Skip to main content
Glama
RexySaragih

mysql-mcp

by RexySaragih

list_routines

Read-onlyIdempotent

List all stored procedures and functions in a given database to inspect the schema of a MySQL or MariaDB server.

Instructions

List stored procedures and functions in a database.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
databaseNoSchema name (optional if MYSQL_DATABASE is set)
Behavior3/5

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

The annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false. The description adds minimal behavioral context beyond affirming it lists routines, which does not contradict the annotations. No additional traits (e.g., pagination, return structure) are disclosed.

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 a single, direct sentence with no extraneous words. It effectively summarizes the tool's function.

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

Completeness3/5

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

For a simple list tool with one optional parameter and no output schema, the description is adequate but not comprehensive. It does not describe what the output contains (e.g., routine names, definitions) or provide any context about stored procedures vs. functions.

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% for the single parameter 'database' (described as 'Schema name (optional if MYSQL_DATABASE is set)'), so the description does not need to add more. The tool description adds no additional parameter meaning beyond the 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?

The description clearly states the verb 'list' and the resource 'stored procedures and functions in a database,' distinguishing it from sibling tools like list_tables and list_triggers. However, it could be more explicit about the optional parameter and the scope (schema vs. entire database).

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives, such as list_tables or list_triggers. There is no mention of prerequisites, the optional database parameter, or the environment variable context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/RexySaragih/mcp-mysql'

If you have feedback or need assistance with the MCP directory API, please join our Discord server