get_organization
Retrieve organization details from the Glitchtip error tracking platform to access essential information for monitoring and debugging workflows.
Instructions
Get organization details
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_organization"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.js:525-569 (handler)The handler function that fetches the organization details from the Glitchtip API endpoint and returns it as JSON text content.
async getOrganization() { const url = `${this.apiEndpoint}/api/0/organizations/${this.organizationSlug}/`; 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 organization: ${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:111-118 (schema)The tool schema definition in the list of tools, specifying name, description, and empty input schema.
{ name: "get_organization", description: "Get organization details", inputSchema: { type: "object", properties: {} } }, - src/index.js:147-148 (registration)Registration in the CallToolRequestSchema switch statement that dispatches to the handler.
case "get_organization": return await this.getOrganization();