list_workflow_statuses
Retrieve workflow status stages to track work order progression in Shopmonkey. Filter by location ID to view pipeline stages.
Instructions
List workflow/pipeline status stages from Shopmonkey. Shows the progression stages work orders move through.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| locationId | No | Filter by location ID. Defaults to SHOPMONKEY_LOCATION_ID env var if set. |
Implementation Reference
- src/tools/workflow.ts:38-45 (handler)The handler function for list_workflow_statuses that makes the request to the Shopmonkey API.
async list_workflow_statuses(args) { const params: Record<string, string> = {}; if (args.locationId !== undefined) params.locationId = String(args.locationId); applyDefaultLocation(params); const data = await shopmonkeyRequest<WorkflowStatus[]>('GET', '/workflow_status', undefined, params); return { content: [{ type: 'text', text: JSON.stringify(data, null, 2) }] }; }, - src/tools/workflow.ts:7-16 (schema)The schema definition for list_workflow_statuses.
{ name: 'list_workflow_statuses', description: 'List workflow/pipeline status stages from Shopmonkey. Shows the progression stages work orders move through.', inputSchema: { type: 'object' as const, properties: { locationId: { type: 'string', description: 'Filter by location ID. Defaults to SHOPMONKEY_LOCATION_ID env var if set.' }, }, }, },