Skip to main content
Glama
rspace-os

RSpace MCP Server

Official
by rspace-os

create_sample_template

Create reusable templates to standardize sample creation with predefined fields, validation rules, and default values for consistent research data management.

Instructions

Creates a reusable template for sample creation

Usage: Standardize sample creation with predefined fields and validation Template data: Define field structure, default values, and constraints Returns: Created template information for future sample generation

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
template_dataYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • MCP tool handler function for 'create_sample_template'. Registered via @mcp.tool decorator. Executes by calling the RSpace inventory client's create_sample_template method with the provided template_data.
    @mcp.tool(tags={"rspace", "inventory", "templates"})
    def create_sample_template(template_data: dict) -> dict:
        """
        Creates a reusable template for sample creation
        
        Usage: Standardize sample creation with predefined fields and validation
        Template data: Define field structure, default values, and constraints
        Returns: Created template information for future sample generation
        """
        return inv_cli.create_sample_template(template_data)
  • main.py:1081-1081 (registration)
    Tool registration decorator @mcp.tool which automatically registers the function as an MCP tool due to FastMCP framework's automatic discovery.
    @mcp.tool(tags={"rspace", "inventory", "templates"})
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It states the tool creates a template and returns information, but lacks details on permissions required, whether templates are editable or deletable, rate limits, or error handling. For a creation tool with zero annotation coverage, this is a significant gap in behavioral disclosure, though it minimally describes the action and return.

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 structured into three concise bullet points, front-loaded with the core purpose. Each sentence adds value: the first states the action, the second explains usage, and the third covers parameters and returns. There's minimal waste, though the formatting could be slightly more polished (e.g., as prose).

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

Completeness3/5

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

Given the tool's complexity (creation operation with nested objects), no annotations, and an output schema exists (so return values needn't be detailed), the description is moderately complete. It covers purpose, usage, and parameter intent but lacks behavioral details like auth needs or mutation effects. It's adequate for a basic understanding but has clear gaps for safe agent use.

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

Parameters3/5

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

Schema description coverage is 0%, so the description must compensate. It adds some meaning by explaining that 'template_data' defines 'field structure, default values, and constraints', which clarifies the parameter's purpose beyond the schema's generic object type. However, it doesn't detail the structure or constraints, leaving gaps. With one parameter and partial compensation, a baseline 3 is appropriate.

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: 'Creates a reusable template for sample creation' with the verb 'creates' and resource 'template'. It distinguishes from siblings like 'create_sample' (creates actual samples) and 'get_sample_template' (retrieves templates), though not explicitly named. However, it doesn't fully differentiate from 'create_form' which might serve a similar templating function, keeping it at 4 instead of 5.

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 implies usage context with 'Standardize sample creation with predefined fields and validation', suggesting this tool is for setting up templates rather than creating samples directly. However, it lacks explicit guidance on when to use this versus alternatives like 'create_form' or 'bulk_create_samples', and no exclusions are provided. The implied context is helpful but incomplete.

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