Skip to main content
Glama
MySQL MCP Server

MySQL MCP Server

by berthojoris

get_stored_procedure_info

Read-onlyIdempotent

Retrieves detailed metadata and parameter definitions for a specific MySQL stored procedure to inspect its structure and usage requirements.

Instructions

Gets detailed information about a specific stored procedure including parameters and metadata.

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

Input Schema

NameRequiredDescriptionDefault
databaseNoOptional: specific database name
procedure_nameYesName of the stored procedure to get information for

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.46.0

TDQS

B3.2/5.0
Behavior3/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. The description adds modest context about what is returned ('parameters and metadata') but says nothing about output shape, error behavior for nonexistent procedures, or cross-database lookup semantics.

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 no filler or preamble. Minor redundancy between 'detailed information' and 'metadata', but nothing that wastes the agent's attention.

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 simple two-parameter read-only tool with full schema coverage and complete annotations, the description covers what is needed to call it correctly. The only real gap is a vague return description ('metadata'), which matters slightly since no output schema exists.

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 both parameters are documented in the schema itself, including that database is optional. The description adds no syntax, format, or defaulting detail beyond what the schema already provides, which puts it at the baseline.

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 ('Gets') and resource ('detailed information about a specific stored procedure'), so an agent knows exactly what the tool returns. It does not explicitly distinguish itself from siblings such as show_create_procedure or list_stored_procedures, leaving that differentiation to inference.

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?

Usage is only implied by the phrase 'a specific stored procedure' requiring a name; there is no statement of when to prefer this over list_stored_procedures or show_create_procedure. No exclusions or prerequisites are given.

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