Fergus MCP by usefulapi

v1.2.1
io.usefulapi/fergus Checked 4 days ago Published 1 day ago

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

ParameterTypeDescription
filterStatusstring
filterUserTypestring
pageCursorstringPage 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.
pageSizeintegerResults per page (vendor maximum applies).
sortFieldstringField to sort by.
sortOrderstringSort 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.

ParameterTypeDescription
filterJobNostringExact job number.
filterJobStatusstring
filterJobTypestring
pageCursorstringPage 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.
pageSizeintegerResults per page (vendor maximum applies).
sortFieldstringSort field (default createdAt).
sortOrderstringSort 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}.

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

ParameterTypeDescription
jobId *Job id.
filterStatusstringPhase status to match.
filterUpdatedSincestringOnly 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.

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

ParameterTypeDescription
createdAfterstringOnly quotes created after this timestamp (ISO 8601).
filterStatusstring
pageCursorstringPage 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.
pageSizeintegerResults per page (vendor maximum applies).
sortFieldstringField to sort by.
sortOrderstringSort direction (default asc).

fergus_get_quote Get quote

Get one quote by id: its line items, totals and status. GET /jobs/quotes/{quoteId}.

ParameterTypeDescription
quoteId *Quote id.

fergus_list_customers List customers

List customers. Use filterSearchText to search by name or other searchable fields (substring match). GET /customers.

ParameterTypeDescription
filterSearchTextstringFree-text search, substring match.
pageCursorstringPage 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.
pageSizeintegerResults per page (vendor maximum applies).
sortFieldstringField to sort by.
sortOrderstringSort direction (default asc).

fergus_get_customer Get customer

Get one customer by id: name, main contact and addresses. GET /customers/{customerId}.

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

ParameterTypeDescription
customerIdstring | numberOnly invoices for this customer id.
jobIdstring | numberOnly invoices for this job id.
pageCursorstringPage 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.
pageSizeintegerResults per page (vendor maximum applies).
sortFieldstringField to sort by.
sortOrderstringSort 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}.

ParameterTypeDescription
invoiceId *Invoice id.

fergus_list_sites List sites

List sites (job addresses), optionally filtered by name, city or postcode. GET /sites.

ParameterTypeDescription
filterAddressCitystring
filterAddressPostalCodestring
filterSiteNamestring
pageCursorstringPage 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.
pageSizeintegerResults per page (vendor maximum applies).
sortOrderstringSort direction (default asc).

fergus_list_contacts List contacts

List contacts of customers or sites. GET /contacts.

ParameterTypeDescription
filterContactTypestring
filterCustomerIdstring | numberOnly contacts of this customer id.
pageCursorstringPage 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.
pageSizeintegerResults per page (vendor maximum applies).
sortFieldstringField to sort by.
sortOrderstringSort direction (default asc).

fergus_list_enquiries List enquiries

List enquiries (incoming leads). Filter by status (TODO, CONTACTED, JOBCREATED, REJECTED) or source. GET /enquiries.

ParameterTypeDescription
filterSourcestringLead source name as shown in Fergus.
filterStatusstring
pageCursorstringPage 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.
pageSizeintegerResults per page (vendor maximum applies).
sortFieldstringField to sort by.
sortOrderstringSort direction (default asc).

fergus_get_enquiry Get enquiry

Get one enquiry (incoming lead) by id. GET /enquiries/{enquiryId}.

ParameterTypeDescription
enquiryId *Enquiry id.

fergus_list_tasks List tasks

List tasks, filtered by status (pending or completed) or assigned employee. GET /tasks.

ParameterTypeDescription
filterEmployeeIdstring | numberOnly tasks assigned to this employee id.
filterStatusstring
pageCursorstringPage 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.
pageSizeintegerResults per page (vendor maximum applies).
sortFieldstringField to sort by.
sortOrderstringSort 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.

ParameterTypeDescription
filterLockedOnlybooleanOnly locked (approved) entries.
filterSearchTextstring
pageCursorstringPage 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.
pageSizeintegerResults per page (vendor maximum applies).
sortFieldstring
sortOrderstringSort 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.

ParameterTypeDescription
filterCalendarEventTypestring
filterJobEventsOnlyboolean
filterJobIdstring | number
filterJobPhaseIdstring | number
filterNonJobEventsOnlyboolean
filterUserIdstring | number

fergus_list_notes List notes

List notes, optionally for one entity (for example a job or a customer). GET /notes.

ParameterTypeDescription
filterEntityName *stringEntity type the notes belong to. Required by the vendor.
filterEntityIdstring | numberId of the entity the note belongs to.
pageCursorstringPage 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.
pageSizeintegerResults per page (vendor maximum applies).
sortFieldstringField to sort by.
sortOrderstringSort direction (default asc).

fergus_list_pricebooks List pricebooks

List pricebooks (supplier price lists), optionally filtered by supplier name. GET /pricebooks.

ParameterTypeDescription
filterSupplierNamestring
pageCursorstringPage 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.
pageSizeintegerResults per page (vendor maximum applies).
sortFieldstringField to sort by (see the vendor docs).
sortOrderstringSort 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.

ParameterTypeDescription
customerFullName *stringCustomer name as it should appear in Fergus.
mainContact *objectMain contact person.
physicalAddressobject

fergus_create_task Create task

Create a task, optionally linked to a job and assigned to employees. POST /tasks.

ParameterTypeDescription
description *stringWhat must be done.
assignedEmployeeIdsarrayEmployee ids to assign.
dueDatestringDate in yyyy-mm-dd format.
jobIdintegerLink the task to this job id (cannot change later).

fergus_complete_task Complete task

Mark one task as completed. POST /tasks/{taskId}/complete.

ParameterTypeDescription
taskId *Task id.

fergus_create_note Create note

Add a note to a job, customer, site, quote, task or enquiry. POST /notes.

ParameterTypeDescription
entityId *integerId of that record.
entityName *stringType of record the note belongs to. Invoices are not offered.
text *stringNote text.
isPinnedbooleanPin the note (default false).
parentIdintegerParent note id, for a reply.