List Sites
rybbit_list_sitesRetrieve all accessible sites and organizations for authenticated users to manage analytics data and monitor website statistics.
Instructions
List all sites and organizations the authenticated user has access to
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/config.ts:78-112 (handler)The handler for 'rybbit_list_sites', which fetches all organizations and their associated sites using the provided RybbitClient.
server.registerTool( "rybbit_list_sites", { title: "List Sites", description: "List all sites and organizations the authenticated user has access to", inputSchema: {}, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true, }, }, async () => { try { const data = await client.get<Organization[]>("/organizations"); return { content: [ { type: "text" as const, text: truncateResponse(data), }, ], }; } catch (err) { const message = err instanceof Error ? err.message : String(err); return { content: [{ type: "text" as const, text: `Error: ${message}` }], isError: true, }; } } );