box_docgen_template_create_tool
Mark a Box file as a document generation template using its file ID, enabling automated document creation workflows through the MCP Server Box.
Instructions
Mark a file as a Box Doc Gen template.
Args: client (BoxClient): Authenticated Box client. file_id (str): ID of the file to mark as template.
Returns: dict[str, Any]: Metadata of the created template.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes |
Implementation Reference
- src/tools/box_tools_docgen.py:24-36 (handler)The handler function that executes the tool logic: retrieves Box client and calls box_docgen_template_create to mark a file as a DocGen template.async def box_docgen_template_create_tool(ctx: Context, file_id: str) -> dict[str, Any]: """ Mark a file as a Box Doc Gen template. Args: client (BoxClient): Authenticated Box client. file_id (str): ID of the file to mark as template. Returns: dict[str, Any]: Metadata of the created template. """ box_client = get_box_client(ctx) return box_docgen_template_create(box_client, file_id)
- src/tool_registry/doc_gen_tools.py:24-24 (registration)Registers the tool handler using FastMCP's mcp.tool() decorator in the doc_gen_tools registry.mcp.tool()(box_docgen_template_create_tool)
- src/tool_registry/doc_gen_tools.py:9-9 (registration)Imports the tool handler from src/tools/box_tools_docgen.py for registration.box_docgen_template_create_tool,