list_tables
Retrieve all available FishBase tables to access marine biology data, including species details, ecological information, and distribution records.
Instructions
List all available FishBase tables
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/fishbase-api.ts:151-167 (handler)Core handler function that executes the list_tables tool logic by returning a static list of FishBase table names.async listTables(): Promise<string[]> { return [ 'species', 'ecology', 'occurrence', 'morphdat', 'comnames', 'spawning', 'diet', 'popgrowth', 'stocks', 'synonyms', 'taxa', 'estimate', 'ecosystem', ]; }
- src/index.ts:138-145 (registration)Registration of the list_tables tool in the MCP server's ListToolsRequestHandler, including name, description, and input schema (no parameters required).{ name: "list_tables", description: "List all available FishBase tables", inputSchema: { type: "object", properties: {}, }, },
- src/index.ts:257-269 (handler)MCP CallToolRequestSchema handler case that invokes the listTables method from FishBaseAPI and formats the response as MCP content.case "list_tables": return { content: [ { type: "text", text: JSON.stringify( await fishbaseAPI.listTables(), null, 2 ), }, ], };