dump_schema_faithful
Produce a byte-faithful schema dump using pg_dump -s, returning DDL inline or writing a timestamped SQL file when output_dir is set; requires pg_dump on the server.
Instructions
Produce a byte-faithful schema dump using the database's own tool (pg_dump -s).
The most complete/runnable schema export (handles sequences, identity, partitioning,
etc.) but REQUIRES the pg_dump binary on the machine running this server. Returns the
DDL inline (or writes {database}_schema_{UTC}.sql when output_dir is set). If
pg_dump isn't installed it returns {status: "pg_dump_not_found", message}: offer to
install pg_dump for the user (see the faithful_schema_export prompt), then retry —
or use get_database_schema(format="sql") which needs no extra tools.
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": "<database>"
},
"name": "dump_schema_faithful"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | Yes | ||
| output_dir | No |