Sortly MCP by usefulapi
v1.41.1Search inventory items and folders, low-stock alerts, jobs and purchase orders, and update stock.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
sortly_list_items List items and folders
List items and folders, newest first. By default the root level; pass folder_id for a folder's direct contents, plus include_subfolders for everything nested under it. Paginated via meta.next_page_url / total_pages. Sortly: GET /api/v1/items.
| Parameter | Type | Description |
|---|---|---|
folder_id | integer | Only the direct contents of this folder. Omit for the root level. |
include | array | Nested associations to embed: custom_attributes and/or photos. |
include_subfolders | boolean | With folder_id: also return everything nested beneath it. Default false. |
page | integer | Page number, starting at 1. |
per_page | integer | Page size, 1-1000 (default 10). |
sortly_get_item Get one item or folder
Fetch a single item or folder by numeric id: quantity, min_quantity, price, tags, sid, barcodes, and optionally custom field values and photos. Sortly: GET /api/v1/items/{item_id}.
| Parameter | Type | Description |
|---|---|---|
item_id * | integer | The item's or folder's numeric id. |
include | array | Nested associations to embed: custom_attributes and/or photos. |
sortly_search_items Search inventory
Search items and folders by name, optionally limited to items or folders and scoped to specific folders. Read-only despite being a POST. Paginated: send the same arguments with the next page number. Sortly: POST /api/v1/items/search.
| Parameter | Type | Description |
|---|---|---|
folder_ids | array | Only search in these folders. |
include | array | Nested associations to embed: custom_attributes and/or photos. |
include_subfolders | boolean | With folder_ids: also search folders nested under them. Default false. |
name | string | Name (or part of it) to search for. |
page | integer | Page number, starting at 1. |
per_page | integer | Page size, 1-100 (default 100). |
sort | string | Sort by name, ascending or descending. |
type | string | Limit to items or folders. Default all. |
sortly_list_recently_updated_items List recently updated items
List items and folders changed since a Unix timestamp — the incremental-sync read ('what moved since yesterday?'). Without updated_since it behaves like sortly_list_items. Sortly: GET /api/v1/items/recent.
| Parameter | Type | Description |
|---|---|---|
folder_id | integer | Only the direct contents of this folder. Omit for the root level. |
include | array | Nested associations to embed: custom_attributes and/or photos. |
include_subfolders | boolean | With folder_id: also return everything nested beneath it. Default false. |
page | integer | Page number, starting at 1. |
per_page | integer | Page size, 1-100 (default 10). |
updated_since | integer | Unix epoch seconds; only items updated after this. |
sortly_list_custom_fields List custom fields
List the account's custom fields (id, name, type, applies_to). Call this before writing custom_attribute_values to get the right custom_attribute_id. Sortly: GET /api/v1/custom_fields.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number, starting at 1. |
per_page | integer | Page size (default 10). |
sortly_list_units List units of measure
List the units of measure available to the account (unit_name, unit_type, scale) — the values measured_quantity and purchase-order lines expect. Sortly: GET /api/v1/units.
sortly_list_alerts List alerts
List stock (Quantity) and date (DateReminder) alerts, with is_fired showing which have already triggered — the quick way to find low-stock items. Sortly: GET /api/v1/alerts.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number, starting at 1. |
per_page | integer | Page size (default 10). |
sortly_list_jobs List jobs
List jobs (work orders that pull stock out), most recently updated first, filterable by name prefix and status. Paginated via meta.pagination.has_next. Sortly: GET /api/v1/jobs.
| Parameter | Type | Description |
|---|---|---|
name | string | Jobs whose name starts with this (case-insensitive). |
page | integer | Page number, starting at 1. |
per_page | integer | Page size, 1-100 (default 20). |
sort_by | string | Sort field. Default updated_at. |
sort_direction | string | Default desc. |
status | array | Only these statuses. Default all. |
sortly_get_job Get one job
Fetch a single job: status, folder_id (where its pulled items sit), dates, notes, custom field values and the version needed for updates. Sortly: GET /api/v1/jobs/{job_id}.
| Parameter | Type | Description |
|---|---|---|
job_id * | integer | The job's id. |
sortly_list_purchase_orders List purchase orders
List purchase orders, most recently updated first, filterable by PO number and status. The list leaves out notes, terms, sub_total and line_items — use sortly_get_purchase_order for those. Needs Purchase Orders on the plan (else 402). Sortly: GET /api/v1/purchase_orders.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number, starting at 1. |
per_page | integer | Page size, 1-100 (default 20). |
purchase_order_number | string | POs whose number contains this. |
sort_by | string | Sort field. Default updated_at. |
sort_direction | string | Default desc. |
status | array | Only these statuses. Default all. |
sortly_get_purchase_order Get one purchase order
Fetch a single purchase order with its line_items (quantity vs received_quantity), vendor, addresses, charges, totals and version. Sortly: GET /api/v1/purchase_orders/{purchase_order_id}.
| Parameter | Type | Description |
|---|---|---|
purchase_order_id * | integer | The purchase order's id. |
sortly_get_purchase_order_receive_status Get a purchase order's receive status
Report the most recent receive against a purchase order: pending / completed / failed, with the line ids received, pending and failed (and why). Returns 404 until something has been received. Sortly: GET /api/v1/purchase_orders/{purchase_order_id}/receive/status.
| Parameter | Type | Description |
|---|---|---|
purchase_order_id * | integer | The purchase order's id. |
sortly_create_item Create an item or folder
Create a trackable item (type item) or a folder (type folder), optionally inside a folder via parent_id, with quantity, price, tags, custom fields, barcodes and a measured quantity. WRITE. Sortly: POST /api/v1/items.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name, max 190 characters. |
type * | string | item = trackable stock; folder = a container. |
custom_attribute_values | array | Custom field values. Look up ids with sortly_list_custom_fields first. |
label_url | string | null | Value encoded in the primary QR code / barcode. |
label_url_extra | string | null | Value encoded in the secondary code. |
label_url_extra_type | Symbology of the secondary code. | |
label_url_type | Symbology of the primary code. | |
measured_quantity | object | For items measured in something other than units. |
min_quantity | number | null | Minimum level; a Quantity alert can fire when stock reaches it. |
notes | string | null | Free-text notes. |
parent_id | Folder to create it in. Omit/null = root. | |
photo_ids | array | Ids of photos already in the account to attach. |
price | number | null | Unit price. |
quantity | number | null | How many you have. |
tags | array | Tag names, e.g. ["furniture", "used"]. |
sortly_update_item Update an item or folder
Change fields on an existing item or folder — e.g. set a new quantity after a stock count, rename it, or relocate a folder via parent_id. Only the fields you pass change; pass null to clear a nullable field. Sending tags or custom_attribute_values replaces them. WRITE. Sortly: PUT /api/v1/items/{item_id} (returns 204).
| Parameter | Type | Description |
|---|---|---|
item_id * | integer | The item's or folder's numeric id. |
custom_attribute_values | array | Custom field values. Look up ids with sortly_list_custom_fields first. |
label_url | string | null | Value encoded in the primary QR code / barcode. |
label_url_extra | string | null | Value encoded in the secondary code. |
label_url_extra_type | Symbology of the secondary code. | |
label_url_type | Symbology of the primary code. | |
measured_quantity | object | New measured amount for a measured item. |
min_quantity | number | null | Minimum level; a Quantity alert can fire when stock reaches it. |
name | string | New name. |
notes | string | null | Free-text notes. |
parent_id | Move into this folder (null = root). To move PART of an item's stock use sortly_move_item. | |
photo_ids | array | Ids of photos already in the account to attach. |
price | number | null | Unit price. |
quantity | number | null | How many you have. |
tags | array | Tag names, e.g. ["furniture", "used"]. |
sortly_move_item Move stock to another folder
Move some or all of an item's quantity to another folder (items only — relocate a folder with sortly_update_item parent_id). A partial move splits off a new item with the same sid; a full move relocates the item; a matching item at the destination is merged, and the returned id is the destination's. Undo by moving it back. WRITE. Sortly: POST /api/v1/items/{item_id}/move.
| Parameter | Type | Description |
|---|---|---|
item_id * | integer | The item's numeric id. |
quantity * | number | How much to move. |
folder_id | integer | Destination folder. Omit to move to the root level. |
leave_zero_quantity | boolean | Keep a zero-quantity record in the source folder. Default false. |
sortly_create_alert Create an alert
Create a stock alert on an item (type Quantity, e.g. threshold_method quantity_less_than with threshold_value 5, or less_than_or_equal_to_min_quantity), or a DateReminder on a datetime custom field (custom_attribute_id + before/after/same_day + threshold_interval). WRITE. Sortly: POST /api/v1/alerts.
| Parameter | Type | Description |
|---|---|---|
item_id * | integer | The item the alert watches. |
threshold_method * | string | What triggers it: a quantity_* method for Quantity, before/after/same_day for DateReminder. |
type * | string | Quantity = stock threshold; DateReminder = date custom field. |
custom_attribute_id | integer | For DateReminder: the datetime custom field to watch. |
recipient_groups | array | Who is notified: owners, admins, members, limited, or a custom role name. Default owners. |
threshold_interval | string | Required for DateReminder; omit for Quantity. |
threshold_value | number | The number compared against (or the interval count). |
sortly_create_job Create a job
Create a job (and its job folder) in not_started status. Name must be unique in the company. Then use sortly_pull_items_into_job to record the stock it uses. WRITE. Sortly: POST /api/v1/jobs.
| Parameter | Type | Description |
|---|---|---|
name * | string | Unique job name, max 190 characters. |
custom_field_values | array | Up to 2 job custom field values. |
end_date | string | YYYY-MM-DD. |
external_job_link | string | Link to the job in another system. |
notes | string | Job notes, max 4000 characters. |
start_date | string | YYYY-MM-DD. |
subfolders | array | Subfolder names to create, up to 25. |
sortly_pull_items_into_job Pull items into a job
Move quantities of existing items (from any folders) into a job's folder — how usage on a job is recorded. Up to 100 items per call; items are processed independently, so ALWAYS check data.errors (a partial failure still returns 200). Undo with sortly_return_items_from_job. Returns 403 on a completed job. WRITE. Sortly: POST /api/v1/jobs/{job_id}/items.
| Parameter | Type | Description |
|---|---|---|
items * | array | 1-100 items. |
job_id * | integer | The job's id. |
notes | string | Optional note kept in each item's history. |
sortly_return_items_from_job Return items from a job
Move items off a job's folder back into inventory (destination_folder_id, or All Items if omitted). Up to 100 per call; check data.errors — items are processed one by one. WRITE. Sortly: POST /api/v1/jobs/{job_id}/items/return.
| Parameter | Type | Description |
|---|---|---|
items * | array | 1-100 items. |
job_id * | integer | The job's id. |
notes | string | Optional note recorded in the item's history. |
sortly_create_purchase_order Draft a purchase order
Create a purchase order in draft status (no stock or ordering happens until it is moved on in Sortly). Sortly computes amounts, sub_total and total from the lines; omit purchase_order_number to have one generated. Needs Purchase Orders on the plan (else 402). WRITE. Sortly: POST /api/v1/purchase_orders.
| Parameter | Type | Description |
|---|---|---|
currency_code * | string | ISO 4217 code, e.g. USD. |
bill_to | object | Billing address. |
charges | object | Order-level charges; each defaults to 0. |
expected_delivery_date | string | ISO 8601 timestamp, e.g. 2026-08-20T00:00:00Z. |
line_items | array | Up to 100 lines. |
notes | string | |
purchase_order_number | string | Unique PO number, max 20 chars. Omit to auto-generate. |
ship_to | object | Shipping address. |
terms | string | e.g. Net 30. |
vendor | object | The vendor, captured on the PO. |