()
| 224 | - Requires bb.databases.getSchema permission.` |
| 225 | |
| 226 | func (s *Server) registerSchemaTool() { |
| 227 | mcp.AddTool(s.mcpServer, &mcp.Tool{ |
| 228 | Name: "get_schema", |
| 229 | Description: getSchemaDescription, |
| 230 | }, s.handleGetSchema) |
| 231 | } |
| 232 | |
| 233 | func (s *Server) handleGetSchema(ctx context.Context, req *mcp.CallToolRequest, input SchemaInput) (*mcp.CallToolResult, any, error) { |
| 234 | if input.Database == "" { |