pylon_snooze_issue
Snooze a support issue until a specified time. Provide the issue ID and target time in RFC3339 format to postpone the issue.
Instructions
Snooze an issue until a specific time
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The issue ID | |
| snooze_until | Yes | Time to snooze until in RFC3339 format |
Implementation Reference
- src/index.ts:926-939 (registration)Registration of the 'pylon_snooze_issue' tool with the MCP server. Defines the tool name, description 'Snooze an issue until a specific time', input schema (id and snooze_until as strings), and the handler that calls client.snoozeIssue.
server.tool( 'pylon_snooze_issue', 'Snooze an issue until a specific time', { id: z.string().describe('The issue ID'), snooze_until: z.string().describe('Time to snooze until in RFC3339 format'), }, async ({ id, snooze_until }) => { const result = await client.snoozeIssue(id, snooze_until); return { content: [{ type: 'text', text: JSON.stringify(result.data, null, 2) }], }; }, ); - src/index.ts:933-938 (handler)The handler function for pylon_snooze_issue. Receives id and snooze_until, calls client.snoozeIssue(id, snooze_until), and returns the issue data as formatted JSON.
async ({ id, snooze_until }) => { const result = await client.snoozeIssue(id, snooze_until); return { content: [{ type: 'text', text: JSON.stringify(result.data, null, 2) }], }; }, - src/index.ts:929-932 (schema)Input schema for pylon_snooze_issue: id (string) and snooze_until (string in RFC3339 format), both defined using Zod.
{ id: z.string().describe('The issue ID'), snooze_until: z.string().describe('Time to snooze until in RFC3339 format'), }, - src/pylon-client.ts:508-515 (helper)The snoozeIssue method on PylonClient. Sends a POST request to /issues/{id}/snooze with the snooze_until payload, returning a SingleResponse<Issue>.
async snoozeIssue( id: string, snooze_until: string, ): Promise<SingleResponse<Issue>> { return this.request<SingleResponse<Issue>>('POST', `/issues/${id}/snooze`, { snooze_until, }); } - src/pylon-client.ts:174-177 (helper)The SingleResponse<T> interface used as the return type for snoozeIssue, wrapping data (of type Issue) with a request_id.
export interface SingleResponse<T> { data: T; request_id: string; }