Skip to main content
Glama

Describe a table

wp_db_schema
Read-onlyIdempotent

Describe the columns of one database table (DESCRIBE): per column Field, Type, Null, Key, Default and Extra, returned as table and columns. Read-only. Only base tables of this site are accepted (on a multisite network, for anyone but a super admin, only the current site's tables); an unknown table, a view or another site's table is refused with an error. The tables themselves are listed by wp_db_tables. Requires manage_options and runs only with write access on. Forwarded by AlphaBridge Connect to the one site this connection reaches.

Input Schema

NameRequiredDescriptionDefault
tableYesPhysical table name including the prefix, e.g. wp_posts, as wp_db_tables lists it. Characters other than letters, digits and underscore are stripped.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / table / description
      Added value: +"Physical table name including the prefix, e.g. wp_posts, as wp_db_tables lists it. Characters other than letters, digits and underscore are stripped."
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, yet the description adds substantial context beyond them: the error-on-refusal behavior for views and foreign-site tables, the multisite super-admin nuance, the required capability, the 'write access on' precondition, and the forwarding scope. This is exactly the kind of extra behavioral disclosure annotations cannot carry.

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 with purpose and return shape, then constraints in descending order of importance. Dense but nearly every sentence carries information; the trailing AlphaBridge forwarding sentence is context rather than invocation guidance, a minor dilution.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter read tool with full schema coverage and no output schema, nothing needed to call it correctly is missing: return shape is named inline, refusal cases are enumerated, and capability prerequisites are stated.

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 schema already explains prefix inclusion, example values, and character stripping, so the description adds little about the single parameter. Baseline 3 applies when the schema does the heavy lifting; the description only echoes 'as wp_db_tables lists it'.

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?

States a specific verb (DESCRIBE) and resource (one database table), enumerates the exact returned columns (Field, Type, Null, Key, Default, Extra), and names wp_db_tables as the listing sibling. An agent can distinguish this from any other wp_db_* tool without opening a schema.

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?

Clearly routes the agent: use wp_db_tables to discover table names, then this tool to inspect one. It also states exclusions (unknown tables, views, other sites' tables are refused) and prerequisites (manage_options, write access on). No explicit statement of when NOT to use it for other inspection tasks, but coverage is strong.

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