DynamoDB MCP Server

create_gsi

Creates a global secondary index on a table

Input Schema

NameRequiredDescriptionDefault
indexNameYesName of the new index
nonKeyAttributesNoNon-key attributes to project (optional)
partitionKeyYesPartition key for the index
partitionKeyTypeYesType of partition key
projectionTypeYesType of projection
readCapacityYesProvisioned read capacity units
sortKeyNoSort key for the index (optional)
sortKeyTypeNoType of sort key (optional)
tableNameYesName of the table
writeCapacityYesProvisioned write capacity units

Input Schema (JSON Schema)

{ "properties": { "indexName": { "description": "Name of the new index", "type": "string" }, "nonKeyAttributes": { "description": "Non-key attributes to project (optional)", "items": { "type": "string" }, "type": "array" }, "partitionKey": { "description": "Partition key for the index", "type": "string" }, "partitionKeyType": { "description": "Type of partition key", "enum": [ "S", "N", "B" ], "type": "string" }, "projectionType": { "description": "Type of projection", "enum": [ "ALL", "KEYS_ONLY", "INCLUDE" ], "type": "string" }, "readCapacity": { "description": "Provisioned read capacity units", "type": "number" }, "sortKey": { "description": "Sort key for the index (optional)", "type": "string" }, "sortKeyType": { "description": "Type of sort key (optional)", "enum": [ "S", "N", "B" ], "type": "string" }, "tableName": { "description": "Name of the table", "type": "string" }, "writeCapacity": { "description": "Provisioned write capacity units", "type": "number" } }, "required": [ "tableName", "indexName", "partitionKey", "partitionKeyType", "projectionType", "readCapacity", "writeCapacity" ], "type": "object" }