Skip to main content
Glama

box_docgen_template_list_tool

List all accessible Box Doc Gen templates for a user, with options for pagination using a marker and limit. Returns template metadata or an error message.

Instructions

List all Box Doc Gen templates accessible to the user.

Args: client (BoxClient): Authenticated Box client. marker (str, optional): Pagination marker. limit (int, optional): Max items per page.

Returns: dict[str, Any] | list[dict[str, Any]]: A list of template metadata or an error message.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
markerNo

Implementation Reference

  • The handler function that executes the tool: gets the Box client from context and lists DocGen templates with optional marker and limit for pagination.
    async def box_docgen_template_list_tool( ctx: Context, marker: str | None = None, limit: int | None = None, ) -> list[dict[str, Any]]: """ List all Box Doc Gen templates accessible to the user. Args: client (BoxClient): Authenticated Box client. marker (str, optional): Pagination marker. limit (int, optional): Max items per page. Returns: dict[str, Any] | list[dict[str, Any]]: A list of template metadata or an error message. """ box_client = get_box_client(ctx) return box_docgen_template_list(box_client, marker=marker, limit=limit)
  • Registers the box_docgen_template_list_tool with the MCP server using the FastMCP tool decorator.
    mcp.tool()(box_docgen_template_list_tool)
  • Imports the box_docgen_template_list_tool from src/tools/box_tools_docgen.py for registration.
    box_docgen_template_list_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