Skip to main content
Glama
box-community

MCP Server Box

box_ai_extract_freeform_tool

Extract or analyze information from Box files using natural language prompts. Ask questions or give instructions to get comprehensive answers from single or multiple files.

Instructions

Extract or analyze information from one or more files using a natural language prompt and return a SINGLE response.

This tool provides maximum flexibility for data extraction and analysis. Instead of defining structured fields, you simply ask Box AI a question or give it instructions in natural language. When multiple files are provided, Box AI analyzes ALL files together to provide ONE comprehensive answer.

This is the most flexible extraction tool but provides unstructured results. Use structured extraction tools (template-based or field-based) when you need consistent, machine-readable output.

Use cases:

  • Single file analysis: "What are the key terms of this contract?"

  • Multiple files analysis: "Compare the pricing across these three proposals and summarize differences"

  • Complex questions: "Based on these financial documents, what are the main risk factors?"

  • Summarization: "Provide a 3-paragraph summary of the main points across these meeting notes"

NOT for batch processing: If you need to ask the same question about multiple files separately (e.g., "summarize each report individually"), call this tool once per file in a loop.

Args: ctx (Context): The context object containing the request and lifespan context. file_ids (List[str]): A list of file IDs to extract information from, example: ["1234567890", "0987654321"]. prompt (str): The fields to extract. ai_agent_id (Optional[str]): The ID of the AI agent to use for the extraction. If None, the default AI agent will be used. Returns: dict: The AI response containing the extracted information.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_idsYes
promptYes
ai_agent_idNo
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It effectively describes key behaviors: it returns a single response (not batch), analyzes all files together for multiple inputs, provides unstructured results, and mentions flexibility vs. consistency trade-offs. However, it doesn't cover potential limitations like rate limits, authentication needs, or error conditions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured and appropriately sized. It front-loads the core purpose, then provides usage guidelines, use cases, and exclusions. While slightly verbose, every section adds value. The 'Args' and 'Returns' sections are redundant with the schema but help readability.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 3-parameter tool with no annotations and no output schema, the description provides strong context: clear purpose, usage guidelines, parameter explanations, and behavioral traits. It adequately compensates for the lack of structured metadata. However, it doesn't detail the response format beyond 'dict' or potential error cases, leaving some gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description must compensate, which it does excellently. It explains that 'file_ids' is 'a list of file IDs to extract information from' with an example, clarifies 'prompt' as 'the fields to extract' (though this could be more precise), and notes 'ai_agent_id' is optional with default behavior. This adds substantial meaning beyond the bare schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Extract or analyze information from one or more files using a natural language prompt and return a SINGLE response.' It specifies the verb ('extract or analyze'), resource ('files'), and distinguishes from siblings by contrasting with 'structured extraction tools' and mentioning sibling tools like box_ai_extract_structured_using_fields_tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit guidance on when to use this tool vs alternatives: 'Use structured extraction tools... when you need consistent, machine-readable output' and 'NOT for batch processing... call this tool once per file in a loop.' It also lists specific use cases and contrasts with structured tools, giving clear context for selection.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

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