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

Parameters: list_service_requests
NameTypeDescription
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

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "servicetrade_read",
    "arguments": {
      "operation": "list_service_requests",
      "arguments": {}
    }
  }
}

Example response

JSON

{
  "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
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.