Skip to main content
Glama

prismic_get_media

Retrieve media assets from Prismic's Asset API using filters like asset type, keywords, and pagination controls to manage digital content.

Instructions

List media assets from Prismic Asset API.

This maps directly to GET /assets query parameters: assetType, limit, cursor, and keyword. Requires PRISMIC_REPOSITORY and PRISMIC_WRITE_API_TOKEN.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
asset_typeNo
limitNo
cursorNo
keywordNo

Implementation Reference

  • The handler implementation for the `prismic_get_media` tool, which calls the service to list assets from the Prismic Asset API.
    async def handle_prismic_get_media(
        *,
        asset_type: str | None = None,
        limit: int | None = None,
        cursor: str | None = None,
        keyword: str | None = None,
        service_factory: ServiceFactory = _build_service,
    ) -> dict[str, Any]:
        """List assets from the Prismic Asset API (`GET /assets`)."""
    
        async with service_factory() as service:
            media = await service.get_media(
                asset_type=asset_type,
                limit=limit,
                cursor=cursor,
                keyword=keyword,
            )
    
        return {"media": media}
  • The tool registration for `prismic_get_media` using the FastMCP decorator.
    @server.tool(name="prismic_get_media")
    async def prismic_get_media(
        asset_type: str | None = None,
        limit: int | None = None,
        cursor: str | None = None,
        keyword: str | None = None,
    ) -> dict[str, Any]:
        """List media assets from Prismic Asset API.
    
        This maps directly to `GET /assets` query parameters:
        `assetType`, `limit`, `cursor`, and `keyword`.
        Requires `PRISMIC_REPOSITORY` and `PRISMIC_WRITE_API_TOKEN`.
        """
    
        return await handle_prismic_get_media(
            asset_type=asset_type,

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