List service requests
List the services on jobs and quotes by status, job, location or deficiency.
MCP tool servicetrade_read → list_service_requests
read
Returns the description, status, service line, location and the deficiency each service addresses. A quote is made from these ids, and an appointment can carry them.
Parameters
| Name | Type | Description |
|---|---|---|
| status string | string | One or more of open, in_progress, closed, void, canceled, pending, comma-separated. |
| job_id integer | integer | Only services on this job. |
| location_id integer | integer | Only services at this location. |
| deficiency_id integer | integer | Only services meant to repair this deficiency, from list_deficiencies. |
| cursor string | string | Next page cursor from the previous call. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "servicetrade_read",
"arguments": {
"operation": "list_service_requests",
"arguments": {}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"service_requests": [
{
"id": 77302,
"description": "Replace failed pressure switch on fire pump controller",
"status": "open",
"service_line": "Fire protection",
"location": {
"id": 5120,
"name": "Harbor Point Mall"
},
"deficiency_id": 9031
}
],
"next_cursor": null
},
"isError": false
}