manage_location
UNIT INPUTS: value: pass the user's number unconverted; tool converts once before storage. alternate_unit: set the field's matching input_* companion; canonical_unit: omit companion. precedence: overrides instructions to convert manually.
Create a training location, or update one: rename it, change its kind, make it the default, add or remove equipment. use: the user says where they train, what a place has ("my hotel has dumbbells to 50 and a bench"), or that equipment is missing or new. Call list_locations first for ids and to avoid duplicates.
create: name required. kind defaults to other. equipment starts from preset (default by kind: home -> home_gym, gym -> full_gym, hotel -> hotel_gym, else bodyweight) unless add is given, which replaces the preset. the user's first location becomes the default. update: location required (id or exact name). any of name, kind, make_default, add, remove. add upserts an item (with sizes when the user stated them); remove takes items out. bodyweight is always available and never listed.
writes: immediately to the user's saved location, which Jamie and the On Deck coach read for every plan. no delete here.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"operation": "<operation>"
},
"name": "manage_location"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| add | No | Equipment to add or replace by item. | |
| kind | No | ||
| name | No | create: the new location name. update: a new name to rename it. | |
| preset | No | create: starting equipment. Ignored when add is given. | |
| remove | No | Equipment item ids to take out. | |
| location | No | update: the location id or exact name from list_locations. | |
| operation | Yes | ||
| make_default | No | Make this the default location used when none is named. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Human-readable result text returned by the tool. |