Skip to main content
Glama
Allentgt

dynamodb-mcp-server

by Allentgt

create_gsi

Create a Global Secondary Index on a DynamoDB table to enable queries on non-primary-key attributes. Monitor index creation progress using describe_table.

Instructions

Create a Global Secondary Index (GSI) on a DynamoDB table.

GSIs enable querying on non-primary-key attributes. The table must be in ACTIVE status. Index creation is asynchronous — use describe_table to monitor progress.

When to use:

  • To enable queries on attributes that aren't part of the primary key

  • To create alternative access patterns for existing data

When NOT to use:

  • If a suitable GSI already exists (check with describe_table first)

  • If the table is not in ACTIVE status

Returns: JSON confirming the GSI creation was initiated with index details.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

The description discloses that 'Index creation is asynchronous — use describe_table to monitor progress', a critical behavior beyond the annotations. It also notes the prerequisite that 'The table must be in ACTIVE status' and states the return value confirms initiation. This adds meaningful context beyond the structured annotations, though it could mention potential delays or failure modes.

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 well-organized into a main paragraph, explicit 'When to use'/'When NOT to use' sections, and a 'Returns' line. Every sentence earns its place, with no redundant content. It is concise yet complete.

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

Completeness5/5

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

Given the output schema and annotations, the description covers essential context: the table's required status, async behavior, monitoring via describe_table, and alternative conditions. It fully equips an agent to decide when and how to invoke the tool, and the return type is stated. No major gaps are apparent.

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?

The description does not enumerate any parameters (table_name, index_name, partition_key, etc.), leaving that to the schema. The schema's top-level 'input' parameter has 0% description coverage, but nested properties are well-described. The description adds conceptual context (e.g., 'non-primary-key attributes') but does not explicitly connect parameters to usage, so it only partially compensates for the low coverage.

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 clearly states 'Create a Global Secondary Index (GSI) on a DynamoDB table' with a specific verb and resource. It also explains that GSIs enable querying on non-primary-key attributes, distinguishing it from table creation and other sibling tools like create_table or describe_table.

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

Usage Guidelines5/5

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

The description includes explicit 'When to use' and 'When NOT to use' sections, providing concrete conditions such as 'To enable queries on attributes that aren't part of the primary key' and 'If a suitable GSI already exists (check with describe_table first)'. It also names describe_table as an alternative for monitoring and pre-checking.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Allentgt/dynamodb-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server