get_event_teams_keys
Retrieve team keys for FIRST Robotics Competition events to identify participating teams and access their data through The Blue Alliance API.
Instructions
Get team keys participating in an event
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| event_key | Yes | Event key (e.g., 2023casj) |
Implementation Reference
- src/handlers.ts:788-800 (handler)Handler implementation for the 'get_event_teams_keys' tool. Parses the event_key argument, calls the TBA API to retrieve team keys for the event, validates the response, and returns the keys as a JSON-formatted text response.case 'get_event_teams_keys': { const { event_key } = z.object({ event_key: EventKeySchema }).parse(args); const data = await makeApiRequest(`/event/${event_key}/teams/keys`); const keys = z.array(z.string()).parse(data); return { content: [ { type: 'text', text: JSON.stringify(keys, null, 2), }, ], }; }
- src/tools.ts:770-782 (registration)Registration of the tool in the tools array, including name, description, and input schema definition used by the MCP server for tool listing.name: 'get_event_teams_keys', description: 'Get team keys participating in an event', inputSchema: { type: 'object', properties: { event_key: { type: 'string', description: 'Event key (e.g., 2023casj)', }, }, required: ['event_key'], }, },
- src/schemas.ts:8-9 (schema)Zod schema for validating event_key input, used in the tool handler.export const EventKeySchema = z.string();