Skip to main content
Glama

getTableIndexes

Read-only

Reads the indexes defined on a table in an Omni SQL connection, using the active connection unless a connection ID is specified.

Instructions

Read indexes for a table in an Omni SQL connection (the active one unless connectionId is given).

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": {
      "schema": "<schema>",
      "table": "<table>"
    },
    "name": "getTableIndexes"
  }
}

Input Schema

NameRequiredDescriptionDefault
tableYes
schemaYes
connectionIdNoConnection id from listConnections. Omit to use the active connection.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.24.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds one genuinely useful behavioral detail — the active-connection fallback — but says nothing about what the returned index data looks like or whether it requires an established connection.

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?

A single front-loaded sentence with zero waste; the connection-scoping qualifier is tucked into a parenthetical rather than padding the main clause.

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

Completeness3/5

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

For a simple read-only tool this is nearly adequate, but with no output schema the description should indicate what index information comes back (columns, uniqueness, primary key) and what happens if the table or connection is invalid. Those gaps are modest rather than severe.

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

Parameters2/5

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

Schema description coverage is only 33%, with just connectionId documented, so the description must compensate for 'schema' and 'table'. It does not: the only semantic content about connectionId repeats what the schema's own description already says, and the meaning of 'schema' is left ambiguous next to the getSchemaSummary sibling.

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?

Names a specific verb and resource ('Read indexes for a table') plus the connection scope, which is more precise than its siblings like getSchemaSummary or executeSql. It stops short of explicitly contrasting with those siblings, but the resource is distinct enough that an agent can route correctly.

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 only implied: the parenthetical establishes that the active connection is the default and connectionId overrides it, which tells the agent how to call it but not when to prefer it over listConnections or getSchemaSummary. No when-not conditions or prerequisites are stated.

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