get_regions
Retrieve a comprehensive list of all regions in EVE Online to access market data, pricing, and historical statistics using the EVE Tycoon MCP Server.
Instructions
Returns the list of all regions
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {},
"type": "object"
}
Implementation Reference
- src/server.ts:124-127 (handler)The execute handler for the 'get_regions' tool. It fetches the list of regions from the EVE Tycoon API endpoint '/v1/market/regions' using the makeApiRequest helper and returns the data as a pretty-printed JSON string.execute: async () => { const data = await makeApiRequest("/v1/market/regions"); return JSON.stringify(data, null, 2); },
- src/server.ts:129-129 (schema)The input parameters schema for 'get_regions', defined as an empty Zod object since the tool takes no arguments.parameters: z.object({}),
- src/server.ts:117-130 (registration)The registration of the 'get_regions' tool using server.addTool(). Includes annotations, description, inline handler, 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:12-21 (helper)Shared helper function makeApiRequest used by the get_regions handler (and other tools) to perform HTTP requests to the EVE Tycoon API base URL.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(); }