Skip to main content
Glama
MySQL MCP Server

MySQL MCP Server

by berthojoris

show_create_view

Read-onlyIdempotent

Retrieve the CREATE VIEW statement for a MySQL view to inspect its definition and dependencies, optionally specifying a database.

Instructions

Shows the CREATE statement for a view.

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": {
      "view_name": "<view_name>"
    },
    "name": "show_create_view"
  }
}

Input Schema

NameRequiredDescriptionDefault
databaseNoOptional: specific database name
view_nameYesName of the view

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.46.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered. The description adds that the output is a CREATE statement (DDL), which is useful, but says nothing about the shape of the response or any privilege requirements for reading a view definition.

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?

A single, front-loaded sentence with zero filler; the key information (what is returned) appears immediately.

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 tool with rich annotations, this is close to sufficient; the only missing piece an agent might want is the response format, which is not covered by an output schema.

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 (database, view_name) are already documented in the schema. The description adds no meaning beyond that, which is acceptable at full coverage but earns no bonus.

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 gives a specific verb plus resource ('Shows the CREATE statement for a view'), which tells an agent exactly what it retrieves in a way the bare name 'show_create_view' alone would not. It distinguishes itself from get_view_info by emphasizing DDL output, though it never explicitly contrasts with sibling show_create_procedure/show_create_trigger.

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, and no mention of the obvious alternative get_view_info, which presumably returns metadata rather than DDL. An agent must infer the selection criteria from the name alone.

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