get_container_summary
Retrieve container metadata like name and type without loading content for fast queries in RSpace research data management.
Instructions
Retrieves container metadata without content for fast queries
Usage: Quick container information lookup without performance impact Performance: Avoids loading large content lists for better response times Returns: Container metadata only (name, type, capacity, etc.)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| container_id | Yes |
Implementation Reference
- main.py:1167-1177 (handler)The primary handler function for the 'get_container_summary' tool. It is decorated with @mcp.tool for automatic registration in the FastMCP framework and implements the core logic by calling the RSpace inventory client's get_container_by_id method with include_content=False for performance-optimized metadata retrieval.@mcp.tool(tags={"rspace", "inventory", "utility"}) def get_container_summary(container_id: int | str) -> dict: """ Retrieves container metadata without content for fast queries Usage: Quick container information lookup without performance impact Performance: Avoids loading large content lists for better response times Returns: Container metadata only (name, type, capacity, etc.) """ return inv_cli.get_container_by_id(container_id, include_content=False)
- main.py:61-66 (schema)Pydantic BaseModel defining the expected structure of inventory container metadata, which aligns with the fields returned by the get_container_summary tool (name, globalId, cType, capacity). Used for type safety and validation in the codebase.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")