Skip to main content
Glama
db-conn-mcp

db-conn-mcp

diff_schemas

Read-onlyIdempotent

Compare schemas of two configured databases (tables, columns, keys) to verify a migrated copy matches its source. Reports tables and column/type/default/key differences.

Instructions

Compare the schemas of two configured databases (tables, columns, PK/FK).

Read-only. Reports tables only in one side, and per-table column/type/default/key differences. Use to verify a migrated copy matches its source of truth; for one database's schema on its own use get_database_schema. An unknown name is an error listing the configured names.

Returns meta, database_a, database_b, only_in_a, only_in_b, changed_tables and identical; meta.database is null, since two are compared.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "database_a": "<database_a>",
      "database_b": "<database_b>"
    },
    "name": "diff_schemas"
  }
}

Input Schema

NameRequiredDescriptionDefault
database_aYesFirst configured database name, as list_databases returns it: usually the source of truth. Results call it side 'a'.
database_bYesSecond configured database name: usually the copy being checked. Results call it side 'b'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.8.1
    • addedInput schema / properties / database_a / description
      Added value: +"First configured database name, as list_databases returns it: usually the source of truth. Results call it side 'a'."
    • addedInput schema / properties / database_b / description
      Added value: +"Second configured database name: usually the copy being checked. Results call it side 'b'."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, non-destructive, closed-world, and the description reinforces rather than contradicts them ("Read-only"). Beyond annotations it discloses what the diff reports (side-only tables, per-table column/type/default/key differences), the error behavior for unknown database names, and the exact result keys including the notable quirk that meta.database is null because two databases are compared — meaningful given there is no output schema.

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 the verb and resource, then scope, then the usage rule, then the return shape — a logical progression with no filler sentences. It is on the longer side, but the enumerated result keys earn their place since no output schema exists to carry them.

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 two-parameter read-only comparison tool with no output schema, the description covers purpose, the exact inputs' roles, error behavior, and the full result shape. Nothing an agent needs in order to call it correctly or interpret the response is missing.

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 both parameter descriptions already state the source-of-truth vs copy intent and the side 'a'/'b' labeling, so the description has little left to add. The mention of only_in_a/only_in_b implicitly confirms the a/b mapping but does not add syntax, format, or constraint details beyond the schema. Baseline 3 is appropriate.

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 and resource ("Compare the schemas of two configured databases") and immediately scopes what is compared: tables, columns, PK/FK, plus only-in-one-side tables and per-table column/type/default/key differences. It also names the sibling it is not (get_database_schema), so an agent can distinguish the two without opening either schema.

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

Usage Guidelines5/5

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

Gives an explicit use case ("verify a migrated copy matches its source of truth") and an explicit alternative with its condition ("for one database's schema on its own use get_database_schema"). It also documents the failure mode for bad input ("An unknown name is an error listing the configured names"), removing the main ambiguity about what to pass.

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