Skip to main content
Glama

Describe the database

describe_database
Read-only

PHP + MySQL plans: lists the tables in the site's database (with approximate row counts and sizes), or, when a table is given, its columns, indexes and CREATE TABLE statement.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
siteYesThe website's domain, as shown by list_sites (e.g. "example.com" or "name.hostingfor.ai").
tableNoOptional table name.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteNo
tableNo
tablesNoWithout `table`: one entry per table (table, engine, approx_rows, size_kb, comment).
columnsNoWith `table`: its columns (name, type, nullable, key, default, extra, comment).
indexesNoIndex name -> {unique, columns}.
databaseNo
create_tableNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, and the description aligns with that. It adds valuable context by noting that row counts and sizes are approximate, which prevents the agent from treating them as precise figures. No behavioral contradictions are present.

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, efficiently structured sentence covers scope, primary behavior, conditional behavior, and output specifics without redundancy. The key limitation is front-loaded.

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?

Given the output schema and read-only annotation, the description is largely complete for invoking the tool correctly. It covers both input modes and notes the approximate nature of table metrics. It could be slightly fuller by explicitly steering agents away from using this tool for executing queries, but that gap is minor.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema already documents both parameters, so the baseline is 3. The description adds meaning by explaining that supplying the 'table' parameter changes the output from table-level listing to detailed column, index, and CREATE TABLE information, which is not fully evident from the schema alone.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb ('lists'), a clear resource ('the site's database'), and the conditional behavior for the optional table parameter. It clearly distinguishes this structural introspection tool from data-manipulation siblings like query_database and execute_sql.

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?

The description communicates when it applies ('PHP + MySQL plans') and the two modes of use. However, it does not explicitly contrast this tool with alternatives such as query_database or execute_sql, so the agent must infer when to choose this over those siblings.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources