crews.list
The shop's crews and their current workers. Any worker in the shop can read it. Archived crews only with include_archived.
| |
|---|
| Who | Agents can call this |
| REST | GET /v1/crews |
| MCP tool | crews_list |
| Writes | no |
| Area | Shop |
When to use it
The shop's crews and their current workers. Any worker in the shop can read it.
What to tell the owner
Tell them what you found in plain words. Don't read back raw fields.
| Field | Type | Required |
|---|
shop_id | string (uuid) | yes |
include_archived | boolean | no |
Example
GET https://doingwork.work/v1/crews?shop_id=00000000-0000-4000-8000-000000000000
Output
| Field | Type | Always there |
|---|
crews | array | yes |
crews[].crew_id | string (uuid) | yes |
crews[].name | string | yes |
crews[].person_ids | array | yes |
crews[].archived | boolean | yes |
{
"crews": [
{
"crew_id": "00000000-0000-4000-8000-000000000000",
"name": "Ruiz Plumbing",
"person_ids": [
"00000000-0000-4000-8000-000000000000"
],
"archived": true
}
]
}
Errors
| Code | Status | What to do |
|---|
invalid_input, invalid_token, rate_limited | | Can happen on any call. See errors. |