get_regions
Retrieve a complete list of all EVE Online regions to access market data, price statistics, and historical pricing information across different areas.
Instructions
Returns the list of all regions
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server.ts:117-130 (registration)Full registration of the 'get_regions' tool, including annotations, description, inline handler (execute), name, and parameters schema.
server.addTool({ annotations: { openWorldHint: true, readOnlyHint: true, title: "Get Regions", }, description: "Returns the list of all regions", execute: async () => { const data = await makeApiRequest("/v1/market/regions"); return JSON.stringify(data, null, 2); }, name: "get_regions", parameters: z.object({}), }); - src/server.ts:124-127 (handler)The execute handler implementation for 'get_regions', which fetches region data from the EVE Tycoon API and returns it as formatted JSON.
execute: async () => { const data = await makeApiRequest("/v1/market/regions"); return JSON.stringify(data, null, 2); }, - src/server.ts:129-129 (schema)Zod schema for 'get_regions' tool inputs: empty object, no parameters required.
parameters: z.object({}), - src/server.ts:12-21 (helper)Shared helper function 'makeApiRequest' used by 'get_regions' (and other tools) to perform API calls to the EVE Tycoon backend.
async function makeApiRequest(endpoint: string): Promise<any> { const url = `${BASE_URL}${endpoint}`; const response = await fetch(url); if (!response.ok) { throw new Error(`API request failed: ${response.status} ${response.statusText}`); } return response.json(); }