Skip to main content
Glama

prismic_get_types

Retrieve custom content type metadata from Prismic's Content API to identify available document structures and their labels for content management workflows.

Instructions

Get repository custom types from Content API root.

Returns content type metadata from the Content API types map as normalized entries with id and label. Typical sequencing: call once, then iterate type ids with prismic_get_documents(type=..., page_size=1) when you only need counts or existence checks.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that executes the logic to fetch content types from the Prismic API.
    async def handle_prismic_get_types(
        *,
        service_factory: ServiceFactory = _build_service,
    ) -> dict[str, Any]:
        """Return repository custom types from Prismic Content API root (`/api/v2`)."""
    
        async with service_factory() as service:
            types = await service.get_types()
    
        return {"types": types}
  • The MCP tool registration for 'prismic_get_types'.
    @server.tool(name="prismic_get_types")
    async def prismic_get_types() -> dict[str, Any]:
        """Get repository custom types from Content API root.
    
        Returns content type metadata from the Content API `types` map as
        normalized entries with `id` and `label`.
        Typical sequencing: call once, then iterate type ids with
        `prismic_get_documents(type=..., page_size=1)` when you only need counts
        or existence checks.
        """
    
        return await handle_prismic_get_types()

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/rahulpowar/prismic-content-mcp'

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