Skip to main content
Glama

prismic_get_repository_context

Retrieve repository and API metadata to identify the active Prismic repository and confirm authentication before executing content workflows.

Instructions

Get active repository context for this MCP server.

Returns repository and API base URL metadata (no secrets) so agents can identify which Prismic repository they are operating on. Recommended first call in a session to confirm repository and auth posture before running read/write workflows.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The core logic function 'handle_prismic_get_repository_context' which executes the service logic.
    async def handle_prismic_get_repository_context(
        *,
        service_factory: ServiceFactory = _build_service,
    ) -> dict[str, Any]:
        """Return active Prismic repository/context metadata for this MCP runtime."""
    
        async with service_factory() as service:
            context = service.get_repository_context()
    
        return {"context": context}
  • Tool registration for 'prismic_get_repository_context' using @server.tool decorator.
    @server.tool(name="prismic_get_repository_context")
    async def prismic_get_repository_context() -> dict[str, Any]:
        """Get active repository context for this MCP server.
    
        Returns repository and API base URL metadata (no secrets) so agents can
        identify which Prismic repository they are operating on.
        Recommended first call in a session to confirm repository and auth
        posture before running read/write workflows.
        """
    
        return await handle_prismic_get_repository_context()

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