Search people & locations
search_resourcesFind the resource id of ONE person or ONE location by name. type is required ("person" or "location"); returns the 10 best matches; name search only (no code or id lookup), and an empty query returns nothing. These ids are what assign_item, adjust_stock, transfer_stock, set_min_stock, create_order (deliverToResourceId), create_item (homeLocationId) and create_location / create_person (parent) take. A "person" here is a PERSON RECORD (someone items can be assigned to), NOT a login account; member userIds come from list_members. Every row carries path, the ancestor names root to parent ("Schulhaus B" → "1. Obergeschoss" for a room, a department chain for a person), and parentId; when several locations share a name, the path tells them apart. An empty result [] means no match. list_resources returns both whole trees without a name.
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": {
"type": "<type>",
"query": "<query>"
},
"name": "search_resources"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | ||
| query | Yes | Name to search for |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No | Up to 10 best name matches; empty array means no match |