pylon_get_organization
Retrieve details about your Pylon organization, including account information and settings, to manage customer support operations.
Instructions
Get information about your Pylon organization
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:30-35 (handler)The handler function for the pylon_get_organization tool. Fetches organization data using PylonClient.getMe() and returns it formatted as JSON text content.async () => { const result = await client.getMe(); return { content: [{ type: 'text', text: JSON.stringify(result.data, null, 2) }], }; },
- src/index.ts:26-36 (registration)Registers the pylon_get_organization tool with the MCP server, providing name, description, empty input schema, and inline handler.server.tool( 'pylon_get_organization', 'Get information about your Pylon organization', {}, async () => { const result = await client.getMe(); return { content: [{ type: 'text', text: JSON.stringify(result.data, null, 2) }], }; }, );
- src/pylon-client.ts:150-152 (helper)PylonClient.getMe() helper method that performs the API GET request to '/me' to retrieve organization information.async getMe(): Promise<SingleResponse<Organization>> { return this.request<SingleResponse<Organization>>('GET', '/me'); }
- src/pylon-client.ts:26-29 (schema)TypeScript interface defining the structure of the Organization object returned by the tool.export interface Organization { id: string; name: string; }