Skip to main content
Glama

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

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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}
  • 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()

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