prismic_get_releases
Retrieve release references from Prismic Content API to access and analyze content snapshots for specific releases, enabling structured content inspection.
Instructions
Get release refs from Content API root.
Returns non-master refs only, equivalent to filtering repository refs by
isMasterRef != true.
Use these refs with read tools (ref parameter) to inspect release
content through Content API.
Note: querying documents with a release ref returns a content snapshot
at that ref, not only the release "planned items" shown in Prismic UI.
Efficiency tip: pick the release ref once and reuse it across all read
queries in the same analysis.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- prismic_content_mcp/server.py:198-207 (handler)The implementation handler for the prismic_get_releases tool.
async def handle_prismic_get_releases( *, service_factory: ServiceFactory = _build_service, ) -> dict[str, Any]: """Return release refs (non-master refs) from Prismic Content API root.""" async with service_factory() as service: releases = await service.get_releases() return {"releases": releases} - prismic_content_mcp/server.py:575-589 (registration)The registration of the prismic_get_releases tool using the @server.tool decorator.
@server.tool(name="prismic_get_releases") async def prismic_get_releases() -> dict[str, Any]: """Get release refs from Content API root. Returns non-master refs only, equivalent to filtering repository refs by `isMasterRef != true`. Use these refs with read tools (`ref` parameter) to inspect release content through Content API. Note: querying documents with a release `ref` returns a content snapshot at that ref, not only the release "planned items" shown in Prismic UI. Efficiency tip: pick the release `ref` once and reuse it across all read queries in the same analysis. """ return await handle_prismic_get_releases()