create_list_container
Create folders, boxes, or other organizational containers for inventory management. Configure storage permissions for different item types and optionally nest containers within a hierarchy.
Instructions
Creates a simple list-based container for organizing inventory
Usage: Create folders, boxes, or other containers without specific positioning Storage permissions: Configure what types of items can be stored Hierarchy: Optionally nest within another container
Returns: Created container information with storage settings
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| can_store_containers | No | ||
| can_store_samples | No | ||
| description | No | ||
| name | Yes | ||
| parent_container_id | No | ||
| tags | No |
Implementation Reference
- main.py:864-894 (handler)The MCP tool handler for 'create_list_container'. Decorated with @mcp.tool for automatic registration. Processes tags and parent location, then calls the underlying inventory client to create the list container.def create_list_container( name: str, description: str = None, tags: List[str] = None, can_store_containers: bool = True, can_store_samples: bool = True, parent_container_id: Union[int, str] = None ) -> dict: """ Creates a simple list-based container for organizing inventory Usage: Create folders, boxes, or other containers without specific positioning Storage permissions: Configure what types of items can be stored Hierarchy: Optionally nest within another container Returns: Created container information with storage settings """ tag_objects = i.gen_tags(tags) if tags else [] location = i.TopLevelTargetLocation() if parent_container_id: location = i.ListContainerTargetLocation(parent_container_id) return inv_cli.create_list_container( name=name, description=description, tags=tag_objects, can_store_containers=can_store_containers, can_store_samples=can_store_samples, location=location )