Skip to main content
Glama
MySQL MCP Server

MySQL MCP Server

by berthojoris

get_database_summary

Read-onlyIdempotent

Returns a high-level overview of a MySQL database, including tables, columns, data types, row counts, and relationships, to help you understand its structure quickly.

Instructions

📊 Returns a high-level overview of the database including all tables, their columns, data types, row counts, and relationships. RECOMMENDED: Use this first when exploring a new database to understand its structure quickly. Features: database overview, per-table breakdown with primary keys, columns with nullable info and foreign key references, optional relationship summary, and configurable table limits.

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

Input Schema

NameRequiredDescriptionDefault
databaseNoOptional: specific database name
max_tablesNoOptional: maximum number of tables to include (default: all tables, max 500)
include_relationshipsNoOptional: include foreign key relationships section (default: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.46.0

TDQS

A3.6/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 covered without help from the description. The description adds real content about what the response contains (primary keys, nullable flags, FK references, optional relationship section) and a 500-table ceiling. It omits operational behavior an exploring agent would care about, such as whether row counts are exact or estimated and whether the call can be slow on large schemas.

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?

Front-loaded and appropriately short, with the recommendation placed early where an agent will see it. There is some redundancy: 'database overview' in the Features list repeats the opening clause, and the emoji plus feature-list formatting adds surface area without new information, though 'primary keys' and 'nullable info' do extend the first sentence.

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?

With no output schema, the description must describe the return payload, and it does so across both the opening sentence and the Features list. For a zero-required-parameter read tool with fully documented inputs and rich annotations, the only meaningful gap is unstated behavior around row-count accuracy and truncation at the 500-table cap.

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 all three parameters — database, max_tables, include_relationships — are already documented with types and defaults in the schema. The description echoes them ('optional relationship summary, and configurable table limits') but adds no new semantics such as what happens when max_tables truncates results. Baseline 3 applies since the schema carries the load.

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 first sentence names a specific verb and resource ('Returns a high-level overview of the database') and enumerates the payload (tables, columns, data types, row counts, relationships). It distinguishes itself partly by asserting primacy ('Use this first when exploring a new database') rather than by naming a sibling, so it is clear but not fully differentiated from tools like get_schema_erd or get_all_tables_relationships.

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

Usage Guidelines4/5

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

'RECOMMENDED: Use this first when exploring a new database to understand its structure quickly' gives a concrete triggering context and an ordering rule relative to follow-up tools. It stops short of exclusions — nothing says when to skip this and go straight to get_table_size, get_index_info, or list_tables once a table is already known.

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