get_market_groups
Retrieve all market groups from the EVE Tycoon API to categorize and organize EVE Online items for market analysis and trading decisions.
Instructions
Returns the list of all market groups
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server.ts:140-143 (handler)Inline handler function for the get_market_groups tool. Fetches the list of market groups from the EVE Tycoon API endpoint and returns the JSON stringified data.execute: async () => { const data = await makeApiRequest("/v1/market/groups"); return JSON.stringify(data, null, 2); },
- src/server.ts:145-145 (schema)Zod schema defining the input parameters for get_market_groups tool: no required parameters.parameters: z.object({}),
- src/server.ts:133-146 (registration)Registration of the get_market_groups tool using FastMCP's server.addTool method, including annotations, description, name, handler, and schema.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:12-21 (helper)Utility helper function used by get_market_groups (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(); }