Skip to main content
Glama
MySQL MCP Server

MySQL MCP Server

by berthojoris

list_views

Read-onlyIdempotent

Retrieve all views from the connected MySQL database, optionally targeting a specific database, to discover view schemas and support query planning.

Instructions

Lists all views in the connected database.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_views"
  }
}

Input Schema

NameRequiredDescriptionDefault
databaseNoOptional: specific database name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.46.0

TDQS

B3.2/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 by structured data. The description adds almost nothing behavioral beyond that—no note on whether system views are included, whether the result is scoped to a schema, or whether the optional database argument overrides the connected database.

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 redundancy. It is appropriately sized for a simple list tool, though it leaves essentially no room for the clarifying detail noted above.

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 zero-required-parameter read tool with rich annotations and no output schema, the description is minimally sufficient to call it correctly. It omits return shape and scope details (schemas, system views) that would help an agent interpret results.

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% and the single optional database parameter is already documented as "Optional: specific database name." The description does not clarify how specifying a database interacts with its "connected database" phrasing, so it neither adds meaning nor compensates for anything missing.

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 ("Lists all views") plus scope ("in the connected database"), which is enough to distinguish it from siblings like list_tables or list_databases. It stops short of naming an alternative, so it is clear but not fully differentiated.

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

Usage Guidelines3/5

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

Usage is only implied by the name and description: an agent can infer it enumerates views when the user wants view metadata rather than table metadata. There is no explicit when-to-use, when-not-to-use, or pointer to a sibling tool for related catalog lookups.

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