Skip to main content
Glama

inspect_schema

Read-onlyIdempotent

Inspect database tables, columns, types, nullability, primary and foreign keys, and DDL on a DBeaver connection. Retrieve full details for one exact table or search tables by name pattern.

Instructions

Inspects tables, columns, types, nullability, PKs, FKs, and DDL on a DBeaver connection + database. Pass table='exact_table' for full column/FK/DDL details, or table_pattern='%order%' to search tables.

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

Input Schema

NameRequiredDescriptionDefault
tableNo
databaseNoTarget database/schema name on that connection.
connectionNoDBeaver connection name or host (e.g. 'localhost', 'staging-db'). Defaults to default_connection.
max_tablesNo
table_patternNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.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, non-destructive and closed-world, so the safety profile is covered. The description contributes the DBeaver connection scoping and the '%pattern%' matching behavior, but says nothing about truncation from max_tables or what happens when a pattern matches nothing.

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?

Two sentences, front-loaded with the capability and followed by the mode-selection rule; the enumerated column list is long but informative rather than filler. Slightly dense, but nothing is redundant.

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 five-parameter, read-only inspection tool with no output schema, the description covers what is inspected well enough to call it correctly in the common cases. The remaining gap is max_tables/truncation behavior, which matters for large schemas.

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 only 40%, and the description compensates for the two most important parameters by contrasting table and table_pattern with concrete examples. It adds nothing about max_tables (default 200) or the default_connection fallback, leaving a real gap at this coverage level.

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 description gives a specific verb ('Inspects') and enumerates the exact resources inspected (tables, columns, types, nullability, PKs, FKs, DDL) scoped to 'a DBeaver connection + database'. It is clear enough to picture the output, but it never names a sibling or states how it differs from catalog tools like list_databases or list_connections.

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?

It explicitly disambiguates its two modes: exact lookup via table='exact_table' versus discovery via table_pattern='%order%', including literal pattern syntax. It stops short of saying when to reach for this tool versus list_databases/list_connections for initial exploration, so no exclusions are given.

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