Skip to main content
Glama
MySQL MCP Server

MySQL MCP Server

by berthojoris

get_view_info

Read-onlyIdempotent

Retrieve detailed metadata for a MySQL view, including its columns and SQL definition, to inspect structure and understand how the view is built. Specify an optional database when needed.

Instructions

Gets detailed information about a specific view including columns and definition.

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

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.2/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 a closed-world scope, so safety is covered. The description adds only that the response includes columns and a definition; it says nothing about permissions required, error behavior for a missing view, or cross-database resolution.

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 sentence with the verb and resource front-loaded and no filler. It is efficient, though extremely terse given what the tool returns.

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 two-parameter read-only metadata lookup with full schema coverage, rich annotations, and no output schema, the description covers what the tool yields. The only meaningful gap is how the optional database parameter interacts with view_name resolution.

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 view_name and the optional database parameter are already documented in the schema. The description adds no syntax, qualification rules, or default-database behavior beyond that, making the baseline 3 appropriate.

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 and resource ('Gets detailed information about a specific view') and names the payload ('columns and definition'), which separates it from sibling metadata tools like get_index_info or get_fulltext_info. It does not explicitly position itself against show_create_view, which likely overlaps, so it falls short of a 5.

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 prerequisites, and no reference to alternatives such as show_create_view. The only cue is the tool name and the phrase 'specific view', leaving the agent to infer selection.

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