Skip to main content
Glama
MySQL MCP Server

MySQL MCP Server

by berthojoris

show_create_procedure

Read-onlyIdempotent

Retrieves the CREATE statement for a MySQL stored procedure, optionally scoped to a specific database, so you can inspect its definition.

Instructions

Shows the CREATE statement for a stored procedure.

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": {
      "procedure_name": "<procedure_name>"
    },
    "name": "show_create_procedure"
  }
}

Input Schema

NameRequiredDescriptionDefault
databaseNoOptional: specific database name
procedure_nameYesName of the stored procedure to show CREATE statement for

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.46.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered without the description. The description adds nothing beyond them: no behavior for a missing procedure, no note on whether the database parameter defaults to the current database, and no indication of return shape.

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?

A single front-loaded sentence with zero filler, and the action and object appear immediately. It is efficient but so terse that it borders on under-specification rather than genuinely concise.

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 read-only lookup, the annotations plus a 100%-covered schema carry most of the load, and no output schema is needed to explain the single DDL string. Still, the description omits what is returned and how a nonexistent procedure or an omitted database is handled, leaving an agent to guess.

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%, so both parameters are already documented, including that database is optional. The description adds no meaning about qualification rules (e.g., whether procedure_name can be schema-qualified) or the database fallback, so the baseline of 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?

States a specific verb (shows) and resource (CREATE statement for a stored procedure), which is unambiguous on its own. It does not, however, distinguish itself from the parallel siblings show_create_trigger and show_create_view, which differ only in the object type.

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?

There is no when-to-use or when-not-to-use guidance, no mention of the alternative get_stored_procedure_info, and no stated prerequisite such as needing the procedure to exist or which database is defaulted to. Usage is only inferable from the name.

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