Skip to main content
Glama

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
NameRequiredDescriptionDefault
file_idYes

Implementation Reference

  • 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)
  • Registers the tool handler using FastMCP's mcp.tool() decorator in the doc_gen_tools registry.
    mcp.tool()(box_docgen_template_create_tool)
  • Imports the tool handler from src/tools/box_tools_docgen.py for registration.
    box_docgen_template_create_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