Class: OvertureMaps::MCPServer::GersLookupTool
- Inherits:
-
MCP::Tool
- Object
- MCP::Tool
- OvertureMaps::MCPServer::GersLookupTool
- Defined in:
- lib/overture_maps/mcp_server.rb
Class Method Summary collapse
Class Method Details
.call(id:, server_context: nil) ⇒ Object
185 186 187 188 189 190 |
# File 'lib/overture_maps/mcp_server.rb', line 185 def self.call(id:, server_context: nil) row = GERS.lookup(id) Helpers.text_response(row || { error: "not found in the registry" }) rescue OvertureMaps::Error, ArgumentError => e Helpers.error_response(e.) end |