Get Database Schema
database_schema_getReturns the structure of the managed database attached to an
environment: every table with its columns (name, type, nullable,
default, and key flags) and its indexes (name, columns,
unique). Read this before writing a migration, model or query, since
the live schema is what the last applied migration produced and the
repository may not match it.
STRUCTURE ONLY. This tool never reads table rows. Meridian does have a SQL console for that, but it is deliberately not exposed here: running queries would put merchant data into this conversation. Use the dashboard when you need to read data.
Requires the environment to have a READY database add-on; environments
without one report a clear error. For a developer's own isolated
database, use dev_database_get instead.
Takes the app_id from apps_list and the environment_id from
environments_list.
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": {
"app_id": "<app_id>",
"environment_id": "<environment_id>"
},
"name": "database_schema_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | Yes | The app uuid returned by `apps_list`. | |
| environment_id | Yes | The environment whose database to describe, from `environments_list`. | |
| organization_id | No | An organisation uuid or slug. When supplied, `app_id` is resolved within that organisation and may be a slug instead of a uuid, mirroring the Meridian web app. |