Skip to main content
Glama

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
NameRequiredDescriptionDefault
event_keyYesEvent key (e.g., 2023casj)

Implementation Reference

  • 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'], }, },
  • Zod schema for validating event_key input, used in the tool handler.
    export const EventKeySchema = z.string();

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/withinfocus/tba'

If you have feedback or need assistance with the MCP directory API, please join our Discord server