box_authorize_app_tool
Initiate the Box app authorization process through the MCP Server Box to enable interaction with Box files and folders, supporting operations like file search and text extraction.
Instructions
Authorize the Box application. Start the Box app authorization process
return: str: Message
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/box_tools_generic.py:41-53 (handler)The main asynchronous handler function for the 'box_authorize_app_tool' tool. It invokes the external 'authorize_app()' function and returns a success or failure message based on the result.async def box_authorize_app_tool() -> str: """ Authorize the Box application. Start the Box app authorization process return: str: Message """ result = authorize_app() if result: return "Box application authorized successfully" else: return "Box application not authorized"
- src/tool_registry/generic_tools.py:11-11 (registration)Registration of the 'box_authorize_app_tool' using the MCP tool decorator in the generic tools registry function.mcp.tool()(box_authorize_app_tool)
- src/tool_registry/generic_tools.py:3-6 (registration)Import of the 'box_authorize_app_tool' function from its implementation module in the generic tools registry.from tools.box_tools_generic import ( box_authorize_app_tool, box_who_am_i, )