get_container
Retrieve container details from RSpace research data, with option to list contained items for comprehensive examination of research materials.
Instructions
Retrieves container information with optional content listing
Usage: Examine container properties and optionally see what's inside Performance: Set include_content=False for faster queries on large containers Returns: Container details and optionally contained items
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| container_id | Yes | ||
| include_content | No |
Implementation Reference
- main.py:935-945 (handler)The MCP tool handler for 'get_container'. This function is decorated with @mcp.tool, defining the tool's inputs, docstring description, and core logic that delegates to the RSpace inventory client's get_container_by_id method.@mcp.tool(tags={"rspace", "inventory", "containers"}) def get_container(container_id: Union[int, str], include_content: bool = False) -> dict: """ Retrieves container information with optional content listing Usage: Examine container properties and optionally see what's inside Performance: Set include_content=False for faster queries on large containers Returns: Container details and optionally contained items """ return inv_cli.get_container_by_id(container_id, include_content)
- main.py:61-67 (schema)Pydantic BaseModel defining the expected structure and fields for container metadata, used in the output of inventory container tools including get_container.class Container(BaseModel): """Inventory container metadata""" name: str = Field(description="Container name") globalId: str = Field(description="Global identifier") cType: str = Field(description="Container type (LIST, GRID, WORKBENCH, IMAGE)") capacity: Optional[int] = Field(description="Container capacity if applicable")