cf_d1_schema
Inspect table and view DDL for a D1 database (or a single table) to help agents write valid SQL without a full schema dump.
Instructions
Inspect the table and view DDL of a D1 database (optionally a single table), so an agent can write valid SQL without a full schema dump.
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": "cf_d1_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | No | ||
| database | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| error | No | ||
| result | No |