Skip to main content
Glama

get_block_document

Retrieve detailed information about a specific Prefect block document using its unique identifier to access configuration and settings for workflow automation components.

Instructions

Get a block document by ID.

Args: block_document_id: The block document UUID

Returns: Block document details

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
block_document_idYes

Implementation Reference

  • The main handler function for the 'get_block_document' MCP tool. It is decorated with @mcp.tool, which registers it. The function fetches a Prefect block document by its UUID using the Prefect client and returns its details as text content.
    @mcp.tool async def get_block_document( block_document_id: str, ) -> List[Union[types.TextContent, types.ImageContent, types.EmbeddedResource]]: """ Get a block document by ID. Args: block_document_id: The block document UUID Returns: Block document details """ async with get_client() as client: block_document = await client.read_block_document(UUID(block_document_id)) return [types.TextContent(type="text", text=str(block_document.model_dump()))]

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/allen-munsch/mcp-prefect'

If you have feedback or need assistance with the MCP directory API, please join our Discord server