diff_schemas
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
| Name | Required | Description | Default |
|---|---|---|---|
| database_a | Yes | First configured database name, as list_databases returns it: usually the source of truth. Results call it side 'a'. | |
| database_b | Yes | Second configured database name: usually the copy being checked. Results call it side 'b'. |