data_drop_column
DESTRUCTIVE — erase a column from EVERY row of a datastore (confirm=True required). Removing a field from the schema takes it out of the view, but the key stays in each row: it still shows up on read, and keeps attracting writes. Writing null does not erase it either. Use it after RENAMING fields — the old names often describe the content better than the new ones, so an agent re-reading a row writes into them believing it aims right; purge them once instead of warning every agent forever. A key still DECLARED in the schema is refused: take it out of the schema first (data_set_schema). Returns {rows} = how many rows carried it, ALWAYS >= 1: a name that no row carries is REFUSED, never reported as a zero — so a success is always a removal you can tick off. The refusal says which of the two it is: a typo (no column of that name), or an ANNOTATION such as site_web.comment — served flat next to its column but stored under it, so a column purge does not reach it (write {"site_web": {"comment": null}} instead).
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": {
"datastore": "<datastore>",
"key": "<key>"
},
"name": "data_drop_column"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | The column to erase. A key still DECLARED in the schema is refused — take it out with `data_set_schema` first. An ANNOTATION (`site_web.comment`) is not a column: erase it by writing `{"site_web": {"comment": null}}`. | |
| _org | No | ||
| _group | No | Équipe (id) de CET APPEL, sous son org parente. | |
| _run_id | No | OBLIGATOIRE à chaque appel dès `run_start` ou `data_claim_next` : sans lui, l'écriture sur une ligne réservée est refusée. Hérité seulement si le serveur tient un run actif — n'y compte pas. | |
| confirm | No | REQUIRED `true` — the purge is refused without it. It erases the key from EVERY row, not just from the schema view. | |
| _project | No | Projet (id) de CET APPEL — jeton PRIMAIRE. `oto_project(op='list')`. | |
| datastore | Yes |