Skip to main content
Glama
rspace-os

RSpace MCP Server

Official
by rspace-os

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
NameRequiredDescriptionDefault
container_idYes

Implementation Reference

  • 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")

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/rspace-os/rspace-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server