Skip to main content
Glama

prismic_get_shared_slices

Retrieve all Shared Slice models from Prismic's Custom Types API to manage reusable content components in your projects.

Instructions

List all Shared Slice models from Prismic Custom Types API.

Uses GET /slices.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The core logic function that fetches all Shared Slice models.
    async def handle_prismic_get_shared_slices(
        *,
        service_factory: ServiceFactory = _build_service,
    ) -> dict[str, Any]:
        """Return all Shared Slice models from Prismic Custom Types API."""
    
        async with service_factory(require_write_credentials=True) as service:
            shared_slices = await service.get_all_shared_slice_models()
    
        return {"shared_slices": shared_slices}
  • The registration of the tool in the MCP server, which calls the handler.
    @server.tool(name="prismic_get_shared_slices")
    async def prismic_get_shared_slices() -> dict[str, Any]:
        """List all Shared Slice models from Prismic Custom Types API.
    
        Uses `GET /slices`.
        """
    
        return await handle_prismic_get_shared_slices()

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