Skip to main content
Glama
rspace-os

RSpace MCP Server

Official
by rspace-os

get_container_contents_only

Retrieve only the items stored in a container using a focused query that returns content with minimal metadata overhead, enabling efficient container content analysis.

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 core handler function implementing the get_container_contents_only tool. It uses the inv_cli to fetch the full container (with content) and extracts only the 'locations' list, providing container contents without full metadata overhead.
    @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