Skip to main content
Glama
rspace-os

RSpace MCP Server

Official
by rspace-os

get_container_contents_only

Retrieve items stored in a container for content analysis, focusing on the contents without metadata overhead.

Instructions

Retrieves only the items stored in a container

Usage: Get container contents without metadata overhead Performance: Focused query for container content analysis Returns: List of contained items with minimal metadata

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
container_idYes

Implementation Reference

  • The handler function decorated with @mcp.tool, which automatically registers it as an MCP tool. It fetches the container by ID including content and returns only the 'locations' list (contents). This is the core implementation of the tool logic.
    @mcp.tool(tags={"rspace", "inventory", "utility"}) def get_container_contents_only(container_id: int | str) -> list: """ Retrieves only the items stored in a container Usage: Get container contents without metadata overhead Performance: Focused query for container content analysis Returns: List of contained items with minimal metadata """ container = inv_cli.get_container_by_id(container_id, include_content=True) return container.get('locations', [])

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