pylon_get_team
Retrieve a specific team's details using its unique ID. Access team information from the Pylon customer support platform.
Instructions
Get a specific team by ID
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The team ID |
Implementation Reference
- src/index.ts:1167-1179 (handler)The MCP tool handler for 'pylon_get_team'. It registers a server.tool with the name 'pylon_get_team' and description 'Get a specific team by ID'. It takes an 'id' string input, calls client.getTeam(id), and returns the team data as JSON.
server.tool( 'pylon_get_team', 'Get a specific team by ID', { id: z.string().describe('The team ID'), }, async ({ id }) => { const result = await client.getTeam(id); return { content: [{ type: 'text', text: JSON.stringify(result.data, null, 2) }], }; }, ); - src/index.ts:1170-1172 (schema)Input schema for the tool: a 'z.string()' parameter named 'id' described as 'The team ID'.
{ id: z.string().describe('The team ID'), }, - src/index.ts:1167-1167 (registration)Registration of the tool via server.tool() call with name 'pylon_get_team'.
server.tool( - src/pylon-client.ts:607-609 (helper)The PylonClient.getTeam() method that executes the actual HTTP GET request to /teams/{id} endpoint. It's called by the handler.
async getTeam(id: string): Promise<SingleResponse<Team>> { return this.request<SingleResponse<Team>>('GET', `/teams/${id}`); } - src/pylon-client.ts:255-259 (helper)The Team interface defining the shape of the returned team object (id, name, users array).
export interface Team { id: string; name: string; users: { email: string; id: string }[]; }