Skip to main content
Glama

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
NameRequiredDescriptionDefault
contentSiteIdYesContent 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,
          };
        }
      }
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Headlesshost/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server