Summary
The documentation states that box_search_tool results include created_at, modified_at, etc., but the actual implementation does not return these fields.
Expected Behavior
As documented:
Each result includes: id, name, type (file/folder), created_at, modified_at, etc.
Actual Behavior
Search results only include id, name, type, size, and description.
Root Cause
The box_search function in box_ai_agents_toolkit hardcodes the fields parameter passed to the Box API:
fields: List[str] = ["id", "name", "type", "size", "description"]
https://github.com/box-community/box-ai-agents-toolkit/blob/f3a5ec9da1ee58dc7414a2117c814bfffe2c5f8b/src/box_ai_agents_toolkit/box_api_search.py#L29
Since the Box API only returns fields explicitly requested via the fields parameter, created_at and modified_at are not included in the response.
Suggested Fix
Add date fields to the fields list. This could be done either:
- In
box_ai_agents_toolkit's box_search function
- In
box_tools_search.py by calling the Box SDK directly instead of using box_ai_agents_toolkit
Environment
- mcp-server-box:
50f4b677d6ffc2bad19a82e0f6f24eb644c0b02d
- box_ai_agents_toolkit: 0.1.5
Summary
The documentation states that
box_search_toolresults includecreated_at,modified_at, etc., but the actual implementation does not return these fields.Expected Behavior
As documented:
Actual Behavior
Search results only include
id,name,type,size, anddescription.Root Cause
The
box_searchfunction inbox_ai_agents_toolkithardcodes thefieldsparameter passed to the Box API:https://github.com/box-community/box-ai-agents-toolkit/blob/f3a5ec9da1ee58dc7414a2117c814bfffe2c5f8b/src/box_ai_agents_toolkit/box_api_search.py#L29
Since the Box API only returns fields explicitly requested via the
fieldsparameter,created_atandmodified_atare not included in the response.Suggested Fix
Add date fields to the
fieldslist. This could be done either:box_ai_agents_toolkit'sbox_searchfunctionbox_tools_search.pyby calling the Box SDK directly instead of usingbox_ai_agents_toolkitEnvironment
50f4b677d6ffc2bad19a82e0f6f24eb644c0b02d