Box Automation via Rube MCP
Automate Box operations including file upload/download, content search, folder management, collaboration, metadata queries, and sign requests through Composio's Box toolkit.
Prerequisites
- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
- Active Box connection via
RUBE_MANAGE_CONNECTIONS with toolkit box
- Always call
RUBE_SEARCH_TOOLS first to get current tool schemas
Setup
Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.
- Verify Rube MCP is available by confirming
RUBE_SEARCH_TOOLS responds
- Call
RUBE_MANAGE_CONNECTIONS with toolkit box
- If connection is not ACTIVE, follow the returned auth link to complete Box OAuth
- Confirm connection status shows ACTIVE before running any workflows
Core Workflows
1. Upload and Download Files
When to use: User wants to upload files to Box or download files from it
Tool sequence:
BOX_SEARCH_FOR_CONTENT - Find the target folder if path is unknown [Prerequisite]
BOX_GET_FOLDER_INFORMATION - Verify folder exists and get folder_id [Prerequisite]
BOX_LIST_ITEMS_IN_FOLDER - Browse folder contents and discover file IDs [Optional]
BOX_UPLOAD_FILE - Upload a file to a specific folder [Required for upload]
BOX_DOWNLOAD_FILE - Download a file by file_id [Required for download]
BOX_CREATE_ZIP_DOWNLOAD - Bundle multiple files/folders into a zip [Optional]
Key parameters:
parent_id: Folder ID for upload destination (use "0" for root folder)
file: FileUploadable object with s3key, mimetype, and name for uploads
file_id: Unique file identifier for downloads
version: Optional file version ID for downloading specific versions
fields: Comma-separated list of attributes to return
Pitfalls:
- Uploading to a folder with existing filenames can trigger conflict behavior; decide overwrite vs rename semantics
- Files over 50MB should use chunk upload APIs (not available via standard tools)
- The
attributes part of upload must come before the file part or you get HTTP 400 with metadata_after_file_contents
- File IDs and folder IDs are numeric strings extractable from Box web app URLs (e.g.,
https://*.app.box.com/files/123 gives file_id "123")
2. Search and Browse Content
When to use: User wants to find files, folders, or web links by name, content, or metadata
Tool sequence:
BOX_SEARCH_FOR_CONTENT - Full-text search across files, folders, and web links [Required]
BOX_LIST_ITEMS_IN_FOLDER - Browse contents of a specific folder [Optional]
BOX_GET_FILE_INFORMATION - Get detailed metadata for a specific file [Optional]
BOX_GET_FOLDER_INFORMATION - Get detailed metadata for a specific folder [Optional]
BOX_QUERY_FILES_FOLDERS_BY_METADATA - Search by metadata template values [Optional]
BOX_LIST_RECENTLY_ACCESSED_ITEMS - List recently accessed items [Optional]
Key parameters:
query: Search string supporting operators ("" exact match, AND, OR, NOT - uppercase only)
type: Filter by "file", "folder", or "web_link"
ancestor_folder_ids: Limit search to specific folders (comma-separated IDs)
file_extensions: Filter by file type (comma-separated, no dots)
content_types: Search in "name", "description", "file_content", "comments", "tags"
created_at_range / updated_at_range: Date filters as comma-separated RFC3339 timestamps
limit: Results per page (default 30)
offset: Pagination offset (max 10000)
folder_id: For LIST_ITEMS_IN_FOLDER (use "0" for root)
Pitfalls:
- Queries with offset > 10000 are rejected with HTTP 400
BOX_SEARCH_FOR_CONTENT requires either query or mdfilters parameter
- Misconfigured filters can silently omit expected items; validate with small test queries first
- Boolean operators (
AND, OR, NOT) must be uppercase
BOX_LIST_ITEMS_IN_FOLDER requires pagination via marker or offset/usemarker; partial listings are common
- Standard folders sort items by type first (folders before files before web links)
3. Manage Folders
When to use: User wants to create, update, move, copy, or delete folders
Tool sequence:
BOX_GET_FOLDER_INFORMATION - Verify folder exists and check permissions [Prerequisite]
BOX_CREATE_FOLDER - Create a new folder [Required for create]
BOX_UPDATE_FOLDER - Rename, move, or update folder settings [Required for update]
BOX_COPY_FOLDER - Copy a folder to a new location [Optional]
BOX_DELETE_FOLDER - Move folder to trash [Required for delete]
BOX_PERMANENTLY_REMOVE_FOLDER - Permanently delete a trashed folder [Optional]
Key parameters:
name: Folder name (no /, \, trailing spaces, or ./..)
parent__id: Parent folder ID (use "0" for root)
folder_id: Target folder ID for operations
parent.id: Destination fold
1---2name: box-automation3description: Automate Box operations including file upload/download, content search, folder management, collaboration, metadata queries, and sign requests through Composio's Box toolkit. 4category: Document Processing5source: antigravity6tags: [api, mcp, ai, automation, workflow, template, document, presentation, cro]7url: https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/box-automation8metadata:9 source: https://skillmd.com/skills/sickn33/box-automation10---111213# Box Automation via Rube MCP1415Automate Box operations including file upload/download, content search, folder management, collaboration, metadata queries, and sign requests through Composio's Box toolkit.1617## Prerequisites1819- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)20- Active Box connection via `RUBE_MANAGE_CONNECTIONS` with toolkit `box`21- Always call `RUBE_SEARCH_TOOLS` first to get current tool schemas2223## Setup2425**Get Rube MCP**: Add `https://rube.app/mcp` as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.26271. Verify Rube MCP is available by confirming `RUBE_SEARCH_TOOLS` responds282. Call `RUBE_MANAGE_CONNECTIONS` with toolkit `box`293. If connection is not ACTIVE, follow the returned auth link to complete Box OAuth304. Confirm connection status shows ACTIVE before running any workflows3132## Core Workflows3334### 1. Upload and Download Files3536**When to use**: User wants to upload files to Box or download files from it3738**Tool sequence**:391. `BOX_SEARCH_FOR_CONTENT` - Find the target folder if path is unknown [Prerequisite]402. `BOX_GET_FOLDER_INFORMATION` - Verify folder exists and get folder_id [Prerequisite]413. `BOX_LIST_ITEMS_IN_FOLDER` - Browse folder contents and discover file IDs [Optional]424. `BOX_UPLOAD_FILE` - Upload a file to a specific folder [Required for upload]435. `BOX_DOWNLOAD_FILE` - Download a file by file_id [Required for download]446. `BOX_CREATE_ZIP_DOWNLOAD` - Bundle multiple files/folders into a zip [Optional]4546**Key parameters**:47- `parent_id`: Folder ID for upload destination (use `"0"` for root folder)48- `file`: FileUploadable object with `s3key`, `mimetype`, and `name` for uploads49- `file_id`: Unique file identifier for downloads50- `version`: Optional file version ID for downloading specific versions51- `fields`: Comma-separated list of attributes to return5253**Pitfalls**:54- Uploading to a folder with existing filenames can trigger conflict behavior; decide overwrite vs rename semantics55- Files over 50MB should use chunk upload APIs (not available via standard tools)56- The `attributes` part of upload must come before the `file` part or you get HTTP 400 with `metadata_after_file_contents`57- File IDs and folder IDs are numeric strings extractable from Box web app URLs (e.g., `https://*.app.box.com/files/123` gives file_id `"123"`)5859### 2. Search and Browse Content6061**When to use**: User wants to find files, folders, or web links by name, content, or metadata6263**Tool sequence**:641. `BOX_SEARCH_FOR_CONTENT` - Full-text search across files, folders, and web links [Required]652. `BOX_LIST_ITEMS_IN_FOLDER` - Browse contents of a specific folder [Optional]663. `BOX_GET_FILE_INFORMATION` - Get detailed metadata for a specific file [Optional]674. `BOX_GET_FOLDER_INFORMATION` - Get detailed metadata for a specific folder [Optional]685. `BOX_QUERY_FILES_FOLDERS_BY_METADATA` - Search by metadata template values [Optional]696. `BOX_LIST_RECENTLY_ACCESSED_ITEMS` - List recently accessed items [Optional]7071**Key parameters**:72- `query`: Search string supporting operators (`""` exact match, `AND`, `OR`, `NOT` - uppercase only)73- `type`: Filter by `"file"`, `"folder"`, or `"web_link"`74- `ancestor_folder_ids`: Limit search to specific folders (comma-separated IDs)75- `file_extensions`: Filter by file type (comma-separated, no dots)76- `content_types`: Search in `"name"`, `"description"`, `"file_content"`, `"comments"`, `"tags"`77- `created_at_range` / `updated_at_range`: Date filters as comma-separated RFC3339 timestamps78- `limit`: Results per page (default 30)79- `offset`: Pagination offset (max 10000)80- `folder_id`: For `LIST_ITEMS_IN_FOLDER` (use `"0"` for root)8182**Pitfalls**:83- Queries with offset > 10000 are rejected with HTTP 40084- `BOX_SEARCH_FOR_CONTENT` requires either `query` or `mdfilters` parameter85- Misconfigured filters can silently omit expected items; validate with small test queries first86- Boolean operators (`AND`, `OR`, `NOT`) must be uppercase87- `BOX_LIST_ITEMS_IN_FOLDER` requires pagination via `marker` or `offset`/`usemarker`; partial listings are common88- Standard folders sort items by type first (folders before files before web links)8990### 3. Manage Folders9192**When to use**: User wants to create, update, move, copy, or delete folders9394**Tool sequence**:951. `BOX_GET_FOLDER_INFORMATION` - Verify folder exists and check permissions [Prerequisite]962. `BOX_CREATE_FOLDER` - Create a new folder [Required for create]973. `BOX_UPDATE_FOLDER` - Rename, move, or update folder settings [Required for update]984. `BOX_COPY_FOLDER` - Copy a folder to a new location [Optional]995. `BOX_DELETE_FOLDER` - Move folder to trash [Required for delete]1006. `BOX_PERMANENTLY_REMOVE_FOLDER` - Permanently delete a trashed folder [Optional]101102**Key parameters**:103- `name`: Folder name (no `/`, `\`, trailing spaces, or `.`/`..`)104- `parent__id`: Parent folder ID (use `"0"` for root)105- `folder_id`: Target folder ID for operations106- `parent.id`: Destination fold