Skip to main content
Glama

box_docgen_template_get_by_id_tool

Retrieve metadata for a specific Box Doc Gen template by its ID using the MCP Server Box API. Input the template ID to access its details or error information.

Instructions

Retrieve details of a specific Box Doc Gen template.

Args: client (BoxClient): Authenticated Box client. template_id (str): ID of the template.

Returns: dict[str, Any]: Metadata of the template or an error message.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
template_idYes

Implementation Reference

  • The handler function implementing the core logic of the 'box_docgen_template_get_by_id_tool' tool. It fetches the authenticated Box client from the MCP context and invokes the underlying Box SDK function to retrieve the DocGen template by its ID.
    async def box_docgen_template_get_by_id_tool( ctx: Context, template_id: str ) -> dict[str, Any]: """ Retrieve details of a specific Box Doc Gen template. Args: client (BoxClient): Authenticated Box client. template_id (str): ID of the template. Returns: dict[str, Any]: Metadata of the template or an error message. """ box_client = get_box_client(ctx) return box_docgen_template_get_by_id(box_client, template_id)
  • The registration of the 'box_docgen_template_get_by_id_tool' handler using the MCP FastMCP tool decorator within the doc_gen_tools registry module.
    mcp.tool()(box_docgen_template_get_by_id_tool)
  • Import of the 'box_docgen_template_get_by_id_tool' handler from src/tools/box_tools_docgen.py in the tool registry.
    box_docgen_template_get_by_id_tool,

Other Tools

Related Tools

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/box-community/mcp-server-box'

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