Fergus MCP by usefulapi
v1.2.1Read jobs, quotes, customer invoices and enquiries; create customers, tasks and notes in Fergus.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
fergus_get_company Get company
Get the Fergus company this token belongs to (name and settings). Good first call to confirm the account. GET /company.
fergus_get_current_user Get current user
Get the Fergus user who owns this token (id, name, role). GET /users/me.
fergus_list_users List users
List staff accounts with their type and status. Use this to find an employee id for tasks or time entries. GET /users.
| Parameter | Type | Description |
|---|---|---|
filterStatus | string | |
filterUserType | string | |
pageCursor | string | Page cursor (default 0, the first page). Use the cursor the vendor returned for the next page in paging.links.next; the vendor docs do not define its format. |
pageSize | integer | Results per page (vendor maximum applies). |
sortField | string | Field to sort by. |
sortOrder | string | Sort direction (default asc). |
fergus_list_jobs List jobs
List jobs (work orders) with status, customer and site. Filter by job number, status or type. Use the cursor to read further pages. GET /jobs.
| Parameter | Type | Description |
|---|---|---|
filterJobNo | string | Exact job number. |
filterJobStatus | string | |
filterJobType | string | |
pageCursor | string | Page cursor (default 0, the first page). Use the cursor the vendor returned for the next page in paging.links.next; the vendor docs do not define its format. |
pageSize | integer | Results per page (vendor maximum applies). |
sortField | string | Sort field (default createdAt). |
sortOrder | string | Sort direction (default asc). |
fergus_get_job Get job
Get one job by id: description, status, customer, site address, active quote and variants. GET /jobs/{jobId}.
| Parameter | Type | Description |
|---|---|---|
jobId * | Job id. |
fergus_list_job_phases List job phases
List the phases (stages of work) of one job, optionally filtered by status or by update time. GET /jobs/{jobId}/phases.
| Parameter | Type | Description |
|---|---|---|
jobId * | Job id. | |
filterStatus | string | Phase status to match. |
filterUpdatedSince | string | Only phases updated since this timestamp (ISO 8601). |
fergus_get_job_financial_summary Get job financial summary
Get the cost, invoiced and margin totals of one job. Read only; it does not change any invoice. GET /jobs/{jobId}/financialSummary.
| Parameter | Type | Description |
|---|---|---|
jobId * | Job id. |
fergus_list_quotes List quotes
List quotes across all jobs, filtered by status or creation date. Use the cursor for further pages. GET /jobs/quotes.
| Parameter | Type | Description |
|---|---|---|
createdAfter | string | Only quotes created after this timestamp (ISO 8601). |
filterStatus | string | |
pageCursor | string | Page cursor (default 0, the first page). Use the cursor the vendor returned for the next page in paging.links.next; the vendor docs do not define its format. |
pageSize | integer | Results per page (vendor maximum applies). |
sortField | string | Field to sort by. |
sortOrder | string | Sort direction (default asc). |
fergus_get_quote Get quote
Get one quote by id: its line items, totals and status. GET /jobs/quotes/{quoteId}.
| Parameter | Type | Description |
|---|---|---|
quoteId * | Quote id. |
fergus_list_customers List customers
List customers. Use filterSearchText to search by name or other searchable fields (substring match). GET /customers.
| Parameter | Type | Description |
|---|---|---|
filterSearchText | string | Free-text search, substring match. |
pageCursor | string | Page cursor (default 0, the first page). Use the cursor the vendor returned for the next page in paging.links.next; the vendor docs do not define its format. |
pageSize | integer | Results per page (vendor maximum applies). |
sortField | string | Field to sort by. |
sortOrder | string | Sort direction (default asc). |
fergus_get_customer Get customer
Get one customer by id: name, main contact and addresses. GET /customers/{customerId}.
| Parameter | Type | Description |
|---|---|---|
customerId * | Customer id. |
fergus_list_customer_invoices List customer invoices
List invoices that Fergus issued to customers, optionally for one customer or job. Read only. GET /customerInvoices.
| Parameter | Type | Description |
|---|---|---|
customerId | string | number | Only invoices for this customer id. |
jobId | string | number | Only invoices for this job id. |
pageCursor | string | Page cursor (default 0, the first page). Use the cursor the vendor returned for the next page in paging.links.next; the vendor docs do not define its format. |
pageSize | integer | Results per page (vendor maximum applies). |
sortField | string | Field to sort by. |
sortOrder | string | Sort direction (default asc). |
fergus_get_customer_invoice Get customer invoice
Get one customer invoice by id: lines, totals and payment status. Read only. GET /customerInvoices/{invoiceId}.
| Parameter | Type | Description |
|---|---|---|
invoiceId * | Invoice id. |
fergus_list_sites List sites
List sites (job addresses), optionally filtered by name, city or postcode. GET /sites.
| Parameter | Type | Description |
|---|---|---|
filterAddressCity | string | |
filterAddressPostalCode | string | |
filterSiteName | string | |
pageCursor | string | Page cursor (default 0, the first page). Use the cursor the vendor returned for the next page in paging.links.next; the vendor docs do not define its format. |
pageSize | integer | Results per page (vendor maximum applies). |
sortOrder | string | Sort direction (default asc). |
fergus_list_contacts List contacts
List contacts of customers or sites. GET /contacts.
| Parameter | Type | Description |
|---|---|---|
filterContactType | string | |
filterCustomerId | string | number | Only contacts of this customer id. |
pageCursor | string | Page cursor (default 0, the first page). Use the cursor the vendor returned for the next page in paging.links.next; the vendor docs do not define its format. |
pageSize | integer | Results per page (vendor maximum applies). |
sortField | string | Field to sort by. |
sortOrder | string | Sort direction (default asc). |
fergus_list_enquiries List enquiries
List enquiries (incoming leads). Filter by status (TODO, CONTACTED, JOBCREATED, REJECTED) or source. GET /enquiries.
| Parameter | Type | Description |
|---|---|---|
filterSource | string | Lead source name as shown in Fergus. |
filterStatus | string | |
pageCursor | string | Page cursor (default 0, the first page). Use the cursor the vendor returned for the next page in paging.links.next; the vendor docs do not define its format. |
pageSize | integer | Results per page (vendor maximum applies). |
sortField | string | Field to sort by. |
sortOrder | string | Sort direction (default asc). |
fergus_get_enquiry Get enquiry
Get one enquiry (incoming lead) by id. GET /enquiries/{enquiryId}.
| Parameter | Type | Description |
|---|---|---|
enquiryId * | Enquiry id. |
fergus_list_tasks List tasks
List tasks, filtered by status (pending or completed) or assigned employee. GET /tasks.
| Parameter | Type | Description |
|---|---|---|
filterEmployeeId | string | number | Only tasks assigned to this employee id. |
filterStatus | string | |
pageCursor | string | Page cursor (default 0, the first page). Use the cursor the vendor returned for the next page in paging.links.next; the vendor docs do not define its format. |
pageSize | integer | Results per page (vendor maximum applies). |
sortField | string | Field to sort by. |
sortOrder | string | Sort direction (default asc). |
fergus_list_time_entries List time entries
List logged time entries. Filter by text or locked state. Sort by timeEntryDate, jobNo or user. GET /timeEntries.
| Parameter | Type | Description |
|---|---|---|
filterLockedOnly | boolean | Only locked (approved) entries. |
filterSearchText | string | |
pageCursor | string | Page cursor (default 0, the first page). Use the cursor the vendor returned for the next page in paging.links.next; the vendor docs do not define its format. |
pageSize | integer | Results per page (vendor maximum applies). |
sortField | string | |
sortOrder | string | Sort direction (default asc). |
fergus_list_calendar_events List calendar events
List calendar events (job phases, quotes, estimates or other). Filter by user, job or type. GET /calendarEvents.
| Parameter | Type | Description |
|---|---|---|
filterCalendarEventType | string | |
filterJobEventsOnly | boolean | |
filterJobId | string | number | |
filterJobPhaseId | string | number | |
filterNonJobEventsOnly | boolean | |
filterUserId | string | number |
fergus_list_notes List notes
List notes, optionally for one entity (for example a job or a customer). GET /notes.
| Parameter | Type | Description |
|---|---|---|
filterEntityName * | string | Entity type the notes belong to. Required by the vendor. |
filterEntityId | string | number | Id of the entity the note belongs to. |
pageCursor | string | Page cursor (default 0, the first page). Use the cursor the vendor returned for the next page in paging.links.next; the vendor docs do not define its format. |
pageSize | integer | Results per page (vendor maximum applies). |
sortField | string | Field to sort by. |
sortOrder | string | Sort direction (default asc). |
fergus_list_pricebooks List pricebooks
List pricebooks (supplier price lists), optionally filtered by supplier name. GET /pricebooks.
| Parameter | Type | Description |
|---|---|---|
filterSupplierName | string | |
pageCursor | string | Page cursor (default 0, the first page). Use the cursor the vendor returned for the next page in paging.links.next; the vendor docs do not define its format. |
pageSize | integer | Results per page (vendor maximum applies). |
sortField | string | Field to sort by (see the vendor docs). |
sortOrder | string | Sort direction (default asc). |
fergus_create_customer Create customer
Create a customer with a name, a main contact and an optional physical address. Writes to the Fergus account; it does not send any email. If Fergus answers with a redirect, the result holds its location instead of the record. POST /customers.
| Parameter | Type | Description |
|---|---|---|
customerFullName * | string | Customer name as it should appear in Fergus. |
mainContact * | object | Main contact person. |
physicalAddress | object |
fergus_create_task Create task
Create a task, optionally linked to a job and assigned to employees. POST /tasks.
| Parameter | Type | Description |
|---|---|---|
description * | string | What must be done. |
assignedEmployeeIds | array | Employee ids to assign. |
dueDate | string | Date in yyyy-mm-dd format. |
jobId | integer | Link the task to this job id (cannot change later). |
fergus_complete_task Complete task
Mark one task as completed. POST /tasks/{taskId}/complete.
| Parameter | Type | Description |
|---|---|---|
taskId * | Task id. |
fergus_create_note Create note
Add a note to a job, customer, site, quote, task or enquiry. POST /notes.
| Parameter | Type | Description |
|---|---|---|
entityId * | integer | Id of that record. |
entityName * | string | Type of record the note belongs to. Invoices are not offered. |
text * | string | Note text. |
isPinned | boolean | Pin the note (default false). |
parentId | integer | Parent note id, for a reply. |