pylon_get_issue
Retrieve a specific customer support issue by ID or issue number from the Pylon platform to access ticket details and status.
Instructions
Get a specific issue by ID or issue number
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The issue ID or issue number |
Implementation Reference
- src/index.ts:313-318 (handler)MCP tool handler that takes an issue ID, calls PylonClient.getIssue, and returns the result as formatted JSON text content.async ({ id }) => { const result = await client.getIssue(id); return { content: [{ type: 'text', text: JSON.stringify(result.data, null, 2) }], }; },
- src/index.ts:310-312 (schema)Zod input schema defining the required 'id' parameter as a string.{ id: z.string().describe('The issue ID or issue number'), },
- src/index.ts:307-319 (registration)Registration of the 'pylon_get_issue' MCP tool with name, description, schema, and handler function.server.tool( 'pylon_get_issue', 'Get a specific issue by ID or issue number', { id: z.string().describe('The issue ID or issue number'), }, async ({ id }) => { const result = await client.getIssue(id); return { content: [{ type: 'text', text: JSON.stringify(result.data, null, 2) }], }; }, );
- src/pylon-client.ts:286-288 (helper)PylonClient helper method implementing the API call to GET /issues/{id} using the internal request method.async getIssue(id: string): Promise<SingleResponse<Issue>> { return this.request<SingleResponse<Issue>>('GET', `/issues/${id}`); }