Skip to main content
Glama

MCP Server Box

from box_ai_agents_toolkit import ( BoxClient, box_file_ai_ask, box_file_ai_extract, box_multi_file_ai_extract, ) def test_box_api_ai_ask(box_client: BoxClient): # HAB-1-01.docx = 1728677291168. This file must exists resp = box_file_ai_ask( box_client, "1728677291168", "what are the key point of this file" ) assert resp is not None assert len(resp) > 0 assert "HAB-1-01" in resp.get("answer") def test_box_api_ai_extract(box_client: BoxClient): resp: dict = box_file_ai_extract( box_client, "1728677291168", "contract date, start date, end date, lessee name, lessee email, rent, property id", ) assert resp is not None assert len(resp) > 0 answer = resp.get("answer") # convert answer str to dict answer = eval(answer) assert isinstance(answer, dict) assert answer.get("contract date") is not None assert answer.get("start date") is not None assert answer.get("end date") is not None assert answer.get("lessee name") is not None assert answer.get("lessee email") is not None # def test_box_api_ai_extract_multi(box_client: BoxClient): # file_ids = [ # "1728675448213", # "1728675498613", # "1728675455413", # "1728675493813", # "1728675501013", # "1728675467413", # "1728675481813", # "1728675489013", # "1728675477013", # "1728675472213", # ] # resp: dict = box_multi_file_ai_extract( # box_client, # file_ids, # "contract date, start date, end date, lessee name, lessee email, rent, property id", # ) # assert resp is not None

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