list_dynamodb_tables
Retrieve a list of DynamoDB tables from AWS to manage and monitor your database resources.
Instructions
Lists DynamoDB tables.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_dynamodb_tables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:2297-2301 (handler)Handler function that lists DynamoDB tables using ListTablesCommand and returns the table names.
if (name === "list_dynamodb_tables") { const command = new ListTablesCommand({}); const response = await dynamoDbClient.send(command); return { content: [{ type: "text", text: JSON.stringify(response.TableNames || [], null, 2) }] }; } - src/index.ts:772-776 (registration)Tool registration in the ListTools response, including name, description, and input schema.
{ name: "list_dynamodb_tables", description: "Lists DynamoDB tables.", inputSchema: { "type": "object", "properties": {} } }, - src/index.ts:775-775 (schema)Input schema definition: empty object (no parameters).
inputSchema: { "type": "object", "properties": {} } - src/index.ts:78-78 (helper)DynamoDB client initialization used by the handler.
const dynamoDbClient = new DynamoDBClient({}); - src/index.ts:45-45 (helper)Import for DynamoDB client and ListTablesCommand.
import { DynamoDBClient, ListTablesCommand, DescribeTableCommand } from "@aws-sdk/client-dynamodb";