ServiceTrade MCP by usefulapi

v1.11.1
io.usefulapi/servicetrade Checked 1 day ago Published 9 hours ago

Read 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.

ParameterTypeDescription
completedOnBeginintegerEarliest completion date as a Unix timestamp in seconds.
completedOnEndintegerLatest completion date as a Unix timestamp in seconds.
createdAfterintegerCreated after as a Unix timestamp in seconds.
customerIdintegerOnly jobs for this customer company id.
dueByBeginintegerEarliest due date as a Unix timestamp in seconds.
dueByEndintegerLatest due date as a Unix timestamp in seconds.
limitintegerResults per page (default and maximum 2000).
locationIdintegerOnly jobs at this location id.
namestringFilter by job name.
numberstringFilter by job number.
pageintegerPage number (1-indexed, default 1).
sortstringSort field.
sortOrderstringSort direction.
statusstringJob status or comma-separated list: new, scheduled, canceled, bidding, completed, pending_invoice, sending_invoice, invoiced, closed.
techIdintegerOnly jobs assigned to this technician user id.
typestringJob type or comma-separated list, e.g. inspection, repair, emergency_service_call, installation.
updatedAfterintegerUpdated 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.

ParameterTypeDescription
companyIdintegerOnly locations of this company id.
limitintegerResults per page (default and maximum 2000).
namestringFilter by location name.
pageintegerPage number (1-indexed, default 1).
statusstringLocation status, e.g. active.
updatedAfterintegerUpdated 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.

ParameterTypeDescription
citystringFilter by city.
isCustomerbooleantrue = only customers.
limitintegerResults per page (default and maximum 2000).
namestringFilter by company name.
pageintegerPage number (1-indexed, default 1).
statestringFilter by state.
statusstringCompany status, e.g. active.
updatedAfterintegerUpdated 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.

ParameterTypeDescription
jobIdintegerOnly appointments of this job id.
limitintegerResults per page (default and maximum 2000).
locationIdintegerOnly appointments at this location id.
pageintegerPage number (1-indexed, default 1).
statusstringAppointment status.
techIdsstringTechnician user id or comma-separated ids.
windowBeginsAfterintegerWindow starts after as a Unix timestamp in seconds.
windowBeginsBeforeintegerWindow 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.

ParameterTypeDescription
jobIdintegerOnly requests of this job id.
limitintegerResults per page (default and maximum 2000).
locationIdintegerOnly requests at this location id.
pageintegerPage number (1-indexed, default 1).
statusstringService 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.

ParameterTypeDescription
assetIdintegerOnly deficiencies of this asset id.
companyIdintegerOnly deficiencies of this company id.
createdAfterintegerCreated after as a Unix timestamp in seconds.
limitintegerResults per page (default and maximum 2000).
locationIdintegerOnly deficiencies at this location id.
pageintegerPage number (1-indexed, default 1).
severitystringSeverity filter, e.g. deficient, impairment, suggested.
statusstringStatus 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.

ParameterTypeDescription
jobIdintegerOnly assets of this job id.
limitintegerResults per page (default and maximum 2000).
locationIdintegerOnly assets at this location id.
namestringFilter by asset name.
pageintegerPage number (1-indexed, default 1).
searchstringFree-text search.
statusstringAsset status.
typestringAsset type.

servicetrade_list_quotes List quotes

List quotes with status, customer, location, total and expiry. ServiceTrade API: GET /quote.

ParameterTypeDescription
createdAfterintegerCreated after as a Unix timestamp in seconds.
customerIdintegerOnly quotes for this customer company id.
jobIdintegerOnly quotes linked to this job id.
limitintegerResults per page (default and maximum 2000).
locationIdintegerOnly quotes at this location id.
pageintegerPage number (1-indexed, default 1).
sortstringSort field.
sortOrderstringSort direction.
statusstringStatus 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.

ParameterTypeDescription
createdAfterintegerCreated after as a Unix timestamp in seconds.
customerIdintegerOnly invoices for this customer company id.
jobIdintegerOnly invoices of this job id.
limitintegerResults per page (default and maximum 2000).
locationIdintegerOnly invoices at this location id.
pageintegerPage number (1-indexed, default 1).
paidbooleantrue = only paid, false = only unpaid.
sortstringSort field.
sortOrderstringSort direction.
statusstringInvoice status.
transactionDateAfterintegerTransaction date after as a Unix timestamp in seconds.
transactionDateBeforeintegerTransaction 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.

ParameterTypeDescription
activebooleantrue = only active contracts.
customerIdintegerOnly contracts for this customer company id.
limitintegerResults per page (default and maximum 2000).
locationIdintegerOnly contracts at this location id.
namestringFilter by contract name.
pageintegerPage 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.

ParameterTypeDescription
companyIdintegerOnly users of this company id.
isTechbooleantrue = only technicians.
limitintegerResults per page (default and maximum 2000).
namestringFilter by user name.
pageintegerPage number (1-indexed, default 1).
searchstringFree-text search.
statusstringUser 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.

ParameterTypeDescription
createdAfterintegerCreated after as a Unix timestamp in seconds.
entityIdintegerThe id of the record.
entityTypeintegerEntity type number: Asset 2, Job 3, Invoice 6, Quote 9, Deficiency 10, Location 11.
limitintegerResults per page (default and maximum 2000).
pageintegerPage number (1-indexed, default 1).
visibilitystringVisibility 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}.

ParameterTypeDescription
id *integerThe job id.

servicetrade_get_location Get a location

Get one customer location by id with address, contacts and status. ServiceTrade API: GET /location/{id}.

ParameterTypeDescription
id *integerThe location id.

servicetrade_get_company Get a company

Get one company by id. ServiceTrade API: GET /company/{id}.

ParameterTypeDescription
id *integerThe company id.

servicetrade_get_appointment Get an appointment

Get one appointment by id with window, technicians and job. ServiceTrade API: GET /appointment/{id}.

ParameterTypeDescription
id *integerThe 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}.

ParameterTypeDescription
id *integerThe deficiency id.

servicetrade_get_asset Get an asset

Get one asset by id with type, location and status. ServiceTrade API: GET /asset/{id}.

ParameterTypeDescription
id *integerThe asset id.

servicetrade_get_quote Get a quote

Get one quote by id with status, line items and totals. ServiceTrade API: GET /quote/{id}.

ParameterTypeDescription
id *integerThe quote id.

servicetrade_get_invoice Get an invoice

Get one invoice by id with status, items and totals. ServiceTrade API: GET /invoice/{id}.

ParameterTypeDescription
id *integerThe 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.

ParameterTypeDescription
content *stringThe comment text.
entityId *integerThe record id.
entityType *stringThe kind of record to comment on.
visibilityarrayWho can see it (default: ServiceTrade default). Assets accept only public and tech.