Skip to main content
Glama

MCP Server Box

box_metadata_set_instance_on_file_tool

Assign custom metadata to a file using a specific template. Required inputs: template key, file ID, and metadata values. Supports various data types including text, dates, numbers, and options. Integrates with Box API for metadata management.

Instructions

Set a metadata instance on a file.

Args: ctx (Context): The context object containing the request and lifespan context. template_key (str): The key of the metadata template. file_id (str): The ID of the file to set the metadata on. metadata (dict): The metadata to set. Example: {'test_field': 'Test Value', 'date_field': '2023-10-01T00:00:00.000Z', 'float_field': 3.14, 'enum_field': 'option1', 'multiselect_field': ['option1', 'option2']}

Returns: dict: The response from the Box API after setting the metadata.

Input Schema

NameRequiredDescriptionDefault
file_idYes
metadataYes
template_keyYes

Input Schema (JSON Schema)

{ "properties": { "file_id": { "title": "File Id", "type": "string" }, "metadata": { "additionalProperties": true, "title": "Metadata", "type": "object" }, "template_key": { "title": "Template Key", "type": "string" } }, "required": [ "template_key", "file_id", "metadata" ], "title": "box_metadata_set_instance_on_file_toolArguments", "type": "object" }
Install Server

Other Tools from MCP Server Box

Related Tools

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