Skip to main content
Glama

prismic_update_shared_slice

Modify an existing Shared Slice model in Prismic by providing the updated JSON structure for content management.

Instructions

Update an existing Shared Slice model.

Uses POST /slices/update. Pass the full updated Shared Slice JSON model.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
shared_sliceYes

Implementation Reference

  • The handler function that executes the logic for updating a Shared Slice.
    async def handle_prismic_update_shared_slice(
        *,
        shared_slice: dict[str, Any],
        service_factory: ServiceFactory = _build_service,
    ) -> dict[str, Any]:
        """Update a Shared Slice model via Prismic Custom Types API."""
    
        async with service_factory(require_write_credentials=True) as service:
            result = await service.update_shared_slice_model(shared_slice=shared_slice)
    
        return result
  • The tool registration and entry point for prismic_update_shared_slice.
    @server.tool(name="prismic_update_shared_slice")
    async def prismic_update_shared_slice(shared_slice: dict[str, Any]) -> dict[str, Any]:
        """Update an existing Shared Slice model.
    
        Uses `POST /slices/update`.
        Pass the full updated Shared Slice JSON model.
        """
    
        return await handle_prismic_update_shared_slice(shared_slice=shared_slice)

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