rename_inventory_item
Change the name of any inventory item in RSpace, including samples, containers, or templates, by providing the item ID and new name.
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 handler function for the 'rename_inventory_item' MCP tool. Decorated with @mcp.tool for registration. Calls inv_cli.rename to perform the rename operation on any inventory item.@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"})