Skip to main content
Glama

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cacheNoOptional CACHE size (e.g. 20). 0 or omit means NOCACHE.
cycleNoWhether to CYCLE when max is reached (default false).
orderNoWhether to guarantee ORDER (default false, useful in RAC).
schemaNoSchema (owner) for the new sequence. Optional — defaults to the server's current schema; omit rather than guess.
sequenceYesSequence name.
startWithNoOptional START WITH value.
incrementByNoOptional INCREMENT BY value (can be negative for descending).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.16.3

TDQS

A3.6/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden, and it does disclose a genuine behavioral fact: the CREATE SEQUENCE privilege requirement and the resulting ORA-01031 error. It omits other important traits such as behavior when the sequence already exists, idempotency, and the return value.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences with zero waste; the scope constraint is front-loaded and the privilege/error note follows. Nothing extraneous.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema and no annotations, but the schema fully documents every parameter and the description adds scope plus the privilege/error requirement. For a simple creation tool this is nearly complete, though it doesn't cover existing-sequence behavior or the success response.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all 7 parameters (cache, cycle, order, schema, sequence, startWith, incrementBy) are already well documented in the schema. The description adds no parameter-level meaning beyond that, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Create') and resource ('sequence') plus a scope qualifier ('in the MCP user's own schema'). This clearly separates it from read siblings like list_sequences, get_sequence_info, and get_next_sequence_value, though it doesn't name any of them explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the verb and the privilege prerequisite, but the description never states when to choose this over alternatives or when not to use it (e.g. if the sequence already exists). The 'own schema' scoping note is a mild usage constraint, but no routing guidance is given.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.