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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- prismic_content_mcp/server.py:186-195 (handler)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} - prismic_content_mcp/server.py:562-573 (registration)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()