get_content_site_claims
Retrieve current user permissions and access rights for a specific content site to verify authorization levels and manage user capabilities.
Instructions
Get current user claims for the content site
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contentSiteId | Yes | Content site ID |
Implementation Reference
- src/index.ts:1990-2023 (registration)Registration, schema, and inline handler for the 'get_content_site_claims' tool. Fetches current user claims for a given content site ID via API GET /tools/content-sites/{contentSiteId}/claims, returning formatted JSON or error.server.registerTool( "get_content_site_claims", { title: "Get Content site Claims", description: "Get current user claims for the content site", inputSchema: { contentSiteId: z.string().describe("Content site ID"), }, }, async ({ contentSiteId }) => { try { const response: AxiosResponse<ApiResponse<any[]>> = await apiClient.get(`/tools/content-sites/${contentSiteId}/claims`); return { content: [ { type: "text", text: JSON.stringify(response.data, null, 2), }, ], }; } catch (error) { return { content: [ { type: "text", text: handleApiError(error), }, ], isError: true, }; } } );