pylon_update_team
Modify team details in Pylon customer support platform by updating the team name and member list using the team ID.
Instructions
Update an existing team
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The team ID | |
| name | No | Updated team name | |
| user_ids | No | Updated list of user IDs |
Implementation Reference
- src/index.ts:643-648 (handler)MCP tool handler for pylon_update_team: calls PylonClient.updateTeam and returns formatted JSON response.async ({ id, ...data }) => { const result = await client.updateTeam(id, data); return { content: [{ type: 'text', text: JSON.stringify(result.data, null, 2) }], }; },
- src/index.ts:635-642 (schema)Zod input schema defining parameters for updating a team: id (required), name and user_ids (optional).{ id: z.string().describe('The team ID'), name: z.string().optional().describe('Updated team name'), user_ids: z .array(z.string()) .optional() .describe('Updated list of user IDs'), },
- src/index.ts:632-649 (registration)Registration of the pylon_update_team MCP tool using server.tool().server.tool( 'pylon_update_team', 'Update an existing team', { id: z.string().describe('The team ID'), name: z.string().optional().describe('Updated team name'), user_ids: z .array(z.string()) .optional() .describe('Updated list of user IDs'), }, async ({ id, ...data }) => { const result = await client.updateTeam(id, data); return { content: [{ type: 'text', text: JSON.stringify(result.data, null, 2) }], }; }, );
- src/pylon-client.ts:442-448 (helper)PylonClient helper method that sends PATCH request to /teams/{id} to update team name and/or user_ids.async updateTeam( id: string, data: { name?: string; user_ids?: string[] }, ): Promise<SingleResponse<Team>> { return this.request<SingleResponse<Team>>('PATCH', `/teams/${id}`, data); } }