get_container
Retrieve container details from RSpace to examine properties and optionally list contents, enabling efficient data inspection and management.
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-944 (handler)The handler function for the 'get_container' MCP tool. It is decorated with @mcp.tool for automatic registration and implements the tool logic by calling the underlying inv_cli.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:935-935 (registration)The @mcp.tool decorator registers the get_container function as an MCP tool with tags for categorization.@mcp.tool(tags={"rspace", "inventory", "containers"})