rename_inventory_item
Change the name of inventory items in RSpace, including samples, containers, and templates, to update item information with a new identifier.
Instructions
Changes the name of any inventory item
Usage: Rename samples, subsamples, containers, or templates Universal: Works with any inventory item type Returns: Updated item information with new name
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item_id | Yes | ||
| new_name | Yes |
Implementation Reference
- main.py:1119-1129 (handler)The main handler function for the 'rename_inventory_item' tool. It is decorated with @mcp.tool for automatic registration and delegates the renaming to inv_cli.rename.@mcp.tool(tags={"rspace", "inventory", "utility"}) def rename_inventory_item(item_id: Union[int, str], new_name: str) -> dict: """ Changes the name of any inventory item Usage: Rename samples, subsamples, containers, or templates Universal: Works with any inventory item type Returns: Updated item information with new name """ return inv_cli.rename(item_id, new_name)
- main.py:1119-1119 (registration)The @mcp.tool decorator registers the rename_inventory_item function as an MCP tool with tags for categorization.@mcp.tool(tags={"rspace", "inventory", "utility"})