ServiceTrade MCP by usefulapi
v1.11.1Read jobs, appointments, deficiencies, invoices and assets, and add comments in ServiceTrade.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
servicetrade_list_jobs List jobs
List jobs (service calls, inspections, installs) with status, type, customer, location, owner, due date and estimated price. Filter by status, type, location, customer, technician, due or completion dates. ServiceTrade API: GET /job.
| Parameter | Type | Description |
|---|---|---|
completedOnBegin | integer | Earliest completion date as a Unix timestamp in seconds. |
completedOnEnd | integer | Latest completion date as a Unix timestamp in seconds. |
createdAfter | integer | Created after as a Unix timestamp in seconds. |
customerId | integer | Only jobs for this customer company id. |
dueByBegin | integer | Earliest due date as a Unix timestamp in seconds. |
dueByEnd | integer | Latest due date as a Unix timestamp in seconds. |
limit | integer | Results per page (default and maximum 2000). |
locationId | integer | Only jobs at this location id. |
name | string | Filter by job name. |
number | string | Filter by job number. |
page | integer | Page number (1-indexed, default 1). |
sort | string | Sort field. |
sortOrder | string | Sort direction. |
status | string | Job status or comma-separated list: new, scheduled, canceled, bidding, completed, pending_invoice, sending_invoice, invoiced, closed. |
techId | integer | Only jobs assigned to this technician user id. |
type | string | Job type or comma-separated list, e.g. inspection, repair, emergency_service_call, installation. |
updatedAfter | integer | Updated after as a Unix timestamp in seconds. |
servicetrade_list_locations List locations
List customer service locations (sites) with address, company, status and tags. ServiceTrade API: GET /location.
| Parameter | Type | Description |
|---|---|---|
companyId | integer | Only locations of this company id. |
limit | integer | Results per page (default and maximum 2000). |
name | string | Filter by location name. |
page | integer | Page number (1-indexed, default 1). |
status | string | Location status, e.g. active. |
updatedAfter | integer | Updated after as a Unix timestamp in seconds. |
servicetrade_list_companies List companies
List companies (customers, vendors, contractors) with city, state and status. ServiceTrade API: GET /company.
| Parameter | Type | Description |
|---|---|---|
city | string | Filter by city. |
isCustomer | boolean | true = only customers. |
limit | integer | Results per page (default and maximum 2000). |
name | string | Filter by company name. |
page | integer | Page number (1-indexed, default 1). |
state | string | Filter by state. |
status | string | Company status, e.g. active. |
updatedAfter | integer | Updated after as a Unix timestamp in seconds. |
servicetrade_list_appointments List appointments
List scheduled appointments (technician visits) with time window, job, location and assigned technicians. ServiceTrade API: GET /appointment.
| Parameter | Type | Description |
|---|---|---|
jobId | integer | Only appointments of this job id. |
limit | integer | Results per page (default and maximum 2000). |
locationId | integer | Only appointments at this location id. |
page | integer | Page number (1-indexed, default 1). |
status | string | Appointment status. |
techIds | string | Technician user id or comma-separated ids. |
windowBeginsAfter | integer | Window starts after as a Unix timestamp in seconds. |
windowBeginsBefore | integer | Window starts before as a Unix timestamp in seconds. |
servicetrade_list_service_requests List service requests
List service requests (the work items to perform on a job, with description, service line and window). ServiceTrade API: GET /servicerequest.
| Parameter | Type | Description |
|---|---|---|
jobId | integer | Only requests of this job id. |
limit | integer | Results per page (default and maximum 2000). |
locationId | integer | Only requests at this location id. |
page | integer | Page number (1-indexed, default 1). |
status | string | Service request status. |
servicetrade_list_deficiencies List deficiencies
List deficiencies (problems found during inspections, such as fire or life-safety defects) with severity, status and asset. ServiceTrade API: GET /deficiency.
| Parameter | Type | Description |
|---|---|---|
assetId | integer | Only deficiencies of this asset id. |
companyId | integer | Only deficiencies of this company id. |
createdAfter | integer | Created after as a Unix timestamp in seconds. |
limit | integer | Results per page (default and maximum 2000). |
locationId | integer | Only deficiencies at this location id. |
page | integer | Page number (1-indexed, default 1). |
severity | string | Severity filter, e.g. deficient, impairment, suggested. |
status | string | Status or comma-separated list: new, invalid, verified, fixed. |
servicetrade_list_assets List assets
List assets (equipment such as extinguishers, panels, pumps) at customer locations with type, status and name. ServiceTrade API: GET /asset.
| Parameter | Type | Description |
|---|---|---|
jobId | integer | Only assets of this job id. |
limit | integer | Results per page (default and maximum 2000). |
locationId | integer | Only assets at this location id. |
name | string | Filter by asset name. |
page | integer | Page number (1-indexed, default 1). |
search | string | Free-text search. |
status | string | Asset status. |
type | string | Asset type. |
servicetrade_list_quotes List quotes
List quotes with status, customer, location, total and expiry. ServiceTrade API: GET /quote.
| Parameter | Type | Description |
|---|---|---|
createdAfter | integer | Created after as a Unix timestamp in seconds. |
customerId | integer | Only quotes for this customer company id. |
jobId | integer | Only quotes linked to this job id. |
limit | integer | Results per page (default and maximum 2000). |
locationId | integer | Only quotes at this location id. |
page | integer | Page number (1-indexed, default 1). |
sort | string | Sort field. |
sortOrder | string | Sort direction. |
status | string | Status or comma-separated list: accepted, canceled, draft, new, rejected, submitted, pending_sales_tax. |
servicetrade_list_invoices List invoices
List invoices with status, customer, job, totals, due date and paid state. ServiceTrade API: GET /invoice.
| Parameter | Type | Description |
|---|---|---|
createdAfter | integer | Created after as a Unix timestamp in seconds. |
customerId | integer | Only invoices for this customer company id. |
jobId | integer | Only invoices of this job id. |
limit | integer | Results per page (default and maximum 2000). |
locationId | integer | Only invoices at this location id. |
page | integer | Page number (1-indexed, default 1). |
paid | boolean | true = only paid, false = only unpaid. |
sort | string | Sort field. |
sortOrder | string | Sort direction. |
status | string | Invoice status. |
transactionDateAfter | integer | Transaction date after as a Unix timestamp in seconds. |
transactionDateBefore | integer | Transaction date before as a Unix timestamp in seconds. |
servicetrade_list_contracts List contracts
List service contracts and agreements with customer, location, review date and active state. ServiceTrade API: GET /contract.
| Parameter | Type | Description |
|---|---|---|
active | boolean | true = only active contracts. |
customerId | integer | Only contracts for this customer company id. |
limit | integer | Results per page (default and maximum 2000). |
locationId | integer | Only contracts at this location id. |
name | string | Filter by contract name. |
page | integer | Page number (1-indexed, default 1). |
servicetrade_list_users List users
List users (technicians, sales staff, office staff and customer contacts) with company and status. ServiceTrade API: GET /user.
| Parameter | Type | Description |
|---|---|---|
companyId | integer | Only users of this company id. |
isTech | boolean | true = only technicians. |
limit | integer | Results per page (default and maximum 2000). |
name | string | Filter by user name. |
page | integer | Page number (1-indexed, default 1). |
search | string | Free-text search. |
status | string | User status, e.g. active. |
servicetrade_list_comments List comments
List comments on one record. Pass the entity type number and the record id (Asset 2, Job 3, Invoice 6, Quote 9, Deficiency 10, Location 11). ServiceTrade API: GET /comment.
| Parameter | Type | Description |
|---|---|---|
createdAfter | integer | Created after as a Unix timestamp in seconds. |
entityId | integer | The id of the record. |
entityType | integer | Entity type number: Asset 2, Job 3, Invoice 6, Quote 9, Deficiency 10, Location 11. |
limit | integer | Results per page (default and maximum 2000). |
page | integer | Page number (1-indexed, default 1). |
visibility | string | Visibility filter: public, schedule, tech or billing. |
servicetrade_get_job Get a job
Get one job by id with customer, location, owner, appointments summary, dates and price. ServiceTrade API: GET /job/{id}.
| Parameter | Type | Description |
|---|---|---|
id * | integer | The job id. |
servicetrade_get_location Get a location
Get one customer location by id with address, contacts and status. ServiceTrade API: GET /location/{id}.
| Parameter | Type | Description |
|---|---|---|
id * | integer | The location id. |
servicetrade_get_company Get a company
Get one company by id. ServiceTrade API: GET /company/{id}.
| Parameter | Type | Description |
|---|---|---|
id * | integer | The company id. |
servicetrade_get_appointment Get an appointment
Get one appointment by id with window, technicians and job. ServiceTrade API: GET /appointment/{id}.
| Parameter | Type | Description |
|---|---|---|
id * | integer | The appointment id. |
servicetrade_get_deficiency Get a deficiency
Get one deficiency by id with severity, status, asset and reporting job. ServiceTrade API: GET /deficiency/{id}.
| Parameter | Type | Description |
|---|---|---|
id * | integer | The deficiency id. |
servicetrade_get_asset Get an asset
Get one asset by id with type, location and status. ServiceTrade API: GET /asset/{id}.
| Parameter | Type | Description |
|---|---|---|
id * | integer | The asset id. |
servicetrade_get_quote Get a quote
Get one quote by id with status, line items and totals. ServiceTrade API: GET /quote/{id}.
| Parameter | Type | Description |
|---|---|---|
id * | integer | The quote id. |
servicetrade_get_invoice Get an invoice
Get one invoice by id with status, items and totals. ServiceTrade API: GET /invoice/{id}.
| Parameter | Type | Description |
|---|---|---|
id * | integer | The invoice id. |
servicetrade_whoami Show the connected credential
Show which ServiceTrade account, company, user and timezone the connected credential belongs to. ServiceTrade API: GET /oauth2/userinfo.
servicetrade_add_comment Add a comment to a record
WRITE: add a new comment to a job, asset, invoice, quote, deficiency or location. Each call creates one more comment (not idempotent: do not retry blindly). ServiceTrade API: POST /comment.
| Parameter | Type | Description |
|---|---|---|
content * | string | The comment text. |
entityId * | integer | The record id. |
entityType * | string | The kind of record to comment on. |
visibility | array | Who can see it (default: ServiceTrade default). Assets accept only public and tech. |