Bind database to app
databases.bindSecurely inject a managed database connection string into an app environment without returning the credential to the model.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"restart": true,
"variable_name": "TANDA_DATABASE_URL",
"app_resource_id": "app-resource-id",
"database_deployment_id": "database-deployment-id"
},
"name": "databases.bind"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| restart | No | restart the app after binding the database | |
| variable_name | No | environment variable name; defaults to DATABASE_URL | DATABASE_URL |
| app_resource_id | Yes | target app instance resource identifier | |
| organization_id | No | organization membership to use for this call; omit only when the account has one current membership | |
| database_deployment_id | Yes | managed database deployment identifier |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |