get_project
Retrieve detailed information about a specific Glitchtip project using its unique slug identifier for error monitoring and project management.
Instructions
Get details of a specific Glitchtip project
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_slug | Yes | The slug of the project to retrieve |
Implementation Reference
- src/index.js:466-523 (handler)The handler function that implements the 'get_project' tool logic. It takes a project_slug argument, fetches the project details from the Glitchtip API, and returns the JSON data or an error message.async getProject(args) { const { project_slug } = args; if (!project_slug) { return { content: [ { type: "text", text: "Error: project_slug is required" } ] }; } const url = `${this.apiEndpoint}/api/0/projects/${this.organizationSlug}/${project_slug}/`; try { const response = await fetch(url, { method: 'GET', headers: { 'Authorization': `Bearer ${this.apiToken}`, 'Accept': 'application/json' } }); if (!response.ok) { const errorText = await response.text(); return { content: [ { type: "text", text: `Error fetching project: ${response.status} ${response.statusText}\n${errorText}` } ] }; } const data = await response.json(); return { content: [ { type: "text", text: JSON.stringify(data, null, 2) } ] }; } catch (error) { return { content: [ { type: "text", text: `Error: ${error.message}` } ] }; } }
- src/index.js:97-110 (schema)The schema definition for the 'get_project' tool, including name, description, and input schema requiring 'project_slug'.{ name: "get_project", description: "Get details of a specific Glitchtip project", inputSchema: { type: "object", properties: { project_slug: { type: "string", description: "The slug of the project to retrieve" } }, required: ["project_slug"] } },
- src/index.js:145-146 (registration)The registration/dispatch case in the CallToolRequest handler that routes calls to the getProject method.case "get_project": return await this.getProject(args);