get-tables
Retrieve a list of all tables within a specified Informix database using the MCP server, simplifying database exploration and table inspection.
Instructions
Get all tables in the database
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | Yes | The database to get the tables from |
Implementation Reference
- main.ts:20-29 (handler)The handler function for the 'get-tables' tool that returns a static text response indicating tables in the database.async ({ database }) => { return { content: [ { type: "text", text: "Tables in the database", }, ], }; }
- main.ts:17-19 (schema)Input schema defining the 'database' parameter for the 'get-tables' tool.{ database: z.string().describe("The database to get the tables from"), },
- main.ts:14-30 (registration)Registration of the 'get-tables' tool on the MCP server.server.tool( "get-tables", // title "Get all tables in the database", // description { database: z.string().describe("The database to get the tables from"), }, async ({ database }) => { return { content: [ { type: "text", text: "Tables in the database", }, ], }; } );