get_market_groups
Retrieve a complete list of market groups within EVE Online using the EVE Tycoon API, enabling efficient access to organized market data for in-game trading and analysis.
Instructions
Returns the list of all market groups
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server.ts:132-146 (registration)Registers the 'get_market_groups' tool with FastMCP server. Includes annotations, description, input schema (empty parameters), and inline execute handler that fetches market groups data from the EVE Tycoon API endpoint '/v1/market/groups' using the shared makeApiRequest helper and returns formatted JSON.// Market Groups Tool server.addTool({ annotations: { openWorldHint: true, readOnlyHint: true, title: "Get Market Groups", }, description: "Returns the list of all market groups", execute: async () => { const data = await makeApiRequest("/v1/market/groups"); return JSON.stringify(data, null, 2); }, name: "get_market_groups", parameters: z.object({}), });
- src/server.ts:140-143 (handler)The execute handler function for the get_market_groups tool. It makes an API request to '/v1/market/groups' and returns the JSON response stringified.execute: async () => { const data = await makeApiRequest("/v1/market/groups"); return JSON.stringify(data, null, 2); },
- src/server.ts:145-145 (schema)Zod schema for tool parameters: empty object since no arguments required.parameters: z.object({}),
- src/server.ts:12-21 (helper)Helper utility function to make API requests to the EVE Tycoon base URL. Used by get_market_groups and other market tools.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(); }