Skip to main content
Glama

create_index

Create an index on an Oracle table to speed up queries, with options for unique indexes and specific columns. Fails without CREATE ANY INDEX or table ownership.

Instructions

Create an index on a table. Requires CREATE ANY INDEX (if the table is in another schema) or table ownership; Oracle returns ORA-01031 otherwise.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
indexYesIndex name.
tableYesTarget table name.
schemaNoSchema where the index will live. Optional — defaults to the server's current schema; omit rather than guess.
uniqueNoWhether to create a UNIQUE index (default false).
columnsYesColumn names to index (JSON array, ordered).
tableSchemaYesSchema of the target table.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.16.3

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations available, the description carries the full behavioral burden. It helpfully discloses the privilege requirement and the specific Oracle error on insufficient authorization, but it does not describe DDL side effects such as table locking, resource consumption, index-name conflicts, or whether the operation can be safely retried.

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?

The description is two sentences with no wasted language. The primary action is front-loaded, and the privilege caveat follows directly as supporting detail.

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?

For a DDL creation tool with fully documented parameters and no output schema, the description covers the essential action and the key authorization prerequisite. It is nearly complete, though it could better route agents away from suggest_index and mention operational side effects.

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 parameters are already documented in the input schema. The description adds no additional parameter meaning beyond what the schema provides, making the baseline score of 3 appropriate.

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

Purpose5/5

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

The description states a specific verb (Create) and resource (an index on a table), which is unambiguous and distinguishes it from sibling read tools like list_indexes and suggest_index. An agent can identify the operation without opening the schema.

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?

The description gives a prerequisite for use: it requires CREATE ANY INDEX or table ownership, and failure returns ORA-01031. However, it does not say when to choose this tool over alternatives such as suggest_index or explain_plan, nor does it state any exclusions.

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