create_sequence
Creates an Oracle sequence in the current or specified schema. Use it to define start, increment, cache, cycle, and order settings for generating numeric values.
Instructions
Create a sequence in the MCP user's own schema. Requires CREATE SEQUENCE privilege; Oracle returns ORA-01031 otherwise.
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": {
"sequence": "<sequence>"
},
"name": "create_sequence"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cache | No | Optional CACHE size (e.g. 20). 0 or omit means NOCACHE. | |
| cycle | No | Whether to CYCLE when max is reached (default false). | |
| order | No | Whether to guarantee ORDER (default false, useful in RAC). | |
| schema | No | Schema (owner) for the new sequence. Optional — defaults to the server's current schema; omit rather than guess. | |
| sequence | Yes | Sequence name. | |
| startWith | No | Optional START WITH value. | |
| incrementBy | No | Optional INCREMENT BY value (can be negative for descending). |