modifyTables
modifyTablesApply structural changes to tables in NeoSQL, including column, index, foreign key, and constraint operations, as well as renaming and comments.
Instructions
Modify one or more existing tables in the NeoSQL application. Each alteration can include: table rename, comment operation, primary key operations, column operations (ADD/DROP/MODIFY/RENAME), index operations (ADD/DROP), foreign key operations (ADD/DROP), and table-level constraint operations (UNIQUE / CHECK / EXCLUSION; ADD/DROP). For table comments, use remarksOperation.modify=true when an empty string is an intended comment change. For primary keys, omit primaryKeyOperations or pass [] for no change; dropping every PK column requires an explicit DROP operation for each current PK column. Pass multiple alterations to modify several tables in a single call. Uses the current context (project/connection).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alterations | Yes | List of table alterations. Each specifies a target table and the changes to apply. | |
| connectionId | No | NeoSQL connection ID from listConnections. If omitted, uses current context connectionId. | |
| schema | No | MCP-enabled database schema name from listConnections. If omitted, uses current context schema. |