Skip to main content
Glama
rspace-os

RSpace MCP Server

Official
by rspace-os

list_samples

Browse and search research samples in RSpace inventory with pagination and sorting options to organize your sample collection effectively.

Instructions

Lists samples in the inventory with pagination and sorting

Usage: Browse sample collection, find recent additions Sorting: Options include "lastModified", "name", "created" Returns: Paginated list of sample metadata

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
page_sizeNo
order_byNolastModified
sort_orderNodesc

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • main.py:790-801 (handler)
    The handler function for the 'list_samples' MCP tool. Decorated with @mcp.tool for automatic registration. Implements pagination and sorting by calling the inv_cli.list_samples method.
    @mcp.tool(tags={"rspace", "inventory", "samples"})
    def list_samples(page_size: int = 20, order_by: str = "lastModified", sort_order: str = "desc") -> dict:
        """
        Lists samples in the inventory with pagination and sorting
        
        Usage: Browse sample collection, find recent additions
        Sorting: Options include "lastModified", "name", "created"
        Returns: Paginated list of sample metadata
        """
        pagination = i.Pagination(page_size=page_size, order_by=order_by, sort_order=sort_order)
        return inv_cli.list_samples(pagination)
  • main.py:790-790 (registration)
    The @mcp.tool decorator registers the list_samples function as an MCP tool with tags for categorization.
    @mcp.tool(tags={"rspace", "inventory", "samples"})
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions pagination and sorting behavior, which is helpful, but doesn't cover other important aspects like rate limits, authentication requirements, error conditions, or whether this is a read-only operation (though 'Lists' implies it). The description adds value but leaves gaps in behavioral context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is efficiently structured with clear sections (Usage, Sorting, Returns) and uses only four sentences. Each sentence adds value, though the 'Usage' line could be more specific. The information is front-loaded with the core purpose stated first.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given that there's an output schema (which handles return value documentation) and this is a relatively simple read operation with 3 parameters, the description provides adequate context. It covers the main behavioral aspects (pagination, sorting) and purpose, though it could benefit from more explicit differentiation from sibling tools and clearer parameter mapping.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema description coverage is 0%, so the description must compensate. It explains the purpose of sorting ('Options include "lastModified", "name", "created"') and mentions pagination, which helps interpret the three parameters. However, it doesn't explicitly map to parameter names like 'page_size' or 'sort_order', leaving some ambiguity about how these concepts connect to the actual schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose as 'Lists samples in the inventory with pagination and sorting', which is a specific verb+resource combination. However, it doesn't explicitly differentiate from sibling tools like 'get_recent_samples_summary' or 'search_inventory', which might offer similar functionality with different scopes or filters.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides some usage context with 'Browse sample collection, find recent additions', which implies this tool is for general browsing rather than targeted searches. However, it doesn't explicitly state when to use this versus alternatives like 'search_inventory' or 'get_recent_samples_summary', nor does it provide exclusion criteria.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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