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
| Name | Required | Description | Default |
|---|---|---|---|
| template_id | Yes |
Implementation Reference
- src/tools/box_tools_docgen.py:59-73 (handler)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)
- src/tool_registry/doc_gen_tools.py:27-27 (registration)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)
- src/tool_registry/doc_gen_tools.py:10-10 (registration)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,