MCP Server

work-order

io.github.theluckystrike/work-order
Business & Operations Public & reachable MCP 2026-07-28

What this MCP does

Manages field-service work orders with parts and labor lines, status progression, completion reports, totals, and invoice-ready payloads.

completion_report_pdf
Completion report as a PDF
Call this tool to render the A4 completion report of one work order and return a download link valid for one hour: the lines, the hours, the materials, the totals and the sign-off block. Pro.
Read only Idempotent
Input schema
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['work_order'], 'properties': {'out_path': {'type': 'string', 'maxLength': 1000, 'description': 'Name for the downloaded file, e.g. harbour-cafe-report. Defaults to the work order id; the report comes back as a download link valid for one hour'}, 'work_order': {'type': 'string', 'maxLength': 200, 'description': 'The work order id, e.g. WO-2026-0001, or the client name when only one job is theirs'}}, 'additionalProperties': False}
completion_report_text
Completion report as plain text
Turn a work order into a plain-text completion report: what was done, the labour hours, the materials, the totals and a sign-off block, ready to paste into an email. The same text also comes back as a .txt download link valid for one hour. Free on every tier.
Read only Idempotent
Input schema
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['work_order'], 'properties': {'work_order': {'type': 'string', 'maxLength': 200, 'description': 'The work order id, e.g. WO-2026-0001, or the client name when only one job is theirs'}}, 'additionalProperties': False}
license_activate
Activate license
Turn Pro on for this connection with key, an MCPL1.<payload>.<signature> issued at checkout for this server or the bundle. Data under your token stays; a wrong or expired key changes nothing. license_status confirms it.
Input schema
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['key'], 'properties': {'key': {'type': 'string', 'description': 'License key from checkout, MCPL1.<payload>.<signature>'}}, 'additionalProperties': False}
license_status
License status
Report this endpoint's licence state for your token as JSON: the product, the tier free or pro, why it is not Pro, and the checkout URL. Call it to explain a free-tier refusal. No arguments, nothing changes.
Read only Idempotent
Input schema
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {}}
work_order_add_line
Add a parts or labour line
Add one line: parts with quantity, unit_cost_minor in whole MINOR units and optional markup, or labour with hours and rate_minor. A line on an invoiced order, or dated before the request, is refused.
Input schema
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['work_order', 'kind', 'description'], 'properties': {'date': {'type': 'string', 'maxLength': 10, 'description': 'The day this line was worked or fitted, YYYY-MM-DD'}, 'kind': {'enum': ['parts', 'labour'], 'type': 'string', 'description': 'parts for materials, labour for time on the job'}, 'note': {'type': 'string', 'maxLength': 2000}, 'hours': {'type': 'number', 'maximum': 100000, 'description': 'labour only: hours worked, e.g. 3.5', 'exclusiveMinimum': 0}, 'quantity': {'type': 'number', 'maximum': 1000000, 'description': 'parts only: how many. A negative or zero quantity is refused', 'exclusiveMinimum': 0}, 'rate_minor': {'type': 'integer', 'maximum': 1000000000000, 'minimum': 0, 'description': 'labour only: the hourly rate in whole minor units. Omit only once the shared business profile carries a default rate'}, 'work_order': {'type': 'string', 'maxLength': 200, 'description': 'The work order id, e.g. WO-2026-0001, or the client name when only one job is theirs'}, 'description': {'type': 'string', 'maxLength': 2000, 'description': 'What it is, e.g. 3kW immersion element, or Second fix and test'}, 'markup_percent': {'type': 'number', 'maximum': 1000, 'minimum': 0, 'description': 'parts only: percent added to the UNIT cost before billing. Default 0'}, 'unit_cost_minor': {'type': 'integer', 'maximum': 1000000000000, 'minimum': 0, 'description': 'parts only: what one costs YOU, in whole minor units. 1299 is EUR 12.99'}}, 'additionalProperties': False}
work_order_create
Raise a work order
Raise a job order and return its WO-YYYY-NNNN number: the client, the site address, the date it was asked for, what the job is and how urgent. Free tier: 5 open orders.
Input schema
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['client', 'site_address', 'requested_date', 'description'], 'properties': {'note': {'type': 'string', 'maxLength': 2000}, 'client': {'type': 'string', 'maxLength': 200, 'description': "A client name or id from the invoice server's client records. An unknown name needs client_address as well, so a typo is not filed as a new customer"}, 'currency': {'type': 'string', 'pattern': '^[A-Za-z]{3}$', 'description': "ISO code the job is priced in. Defaults to the shared business profile's currency"}, 'priority': {'enum': ['low', 'normal', 'high', 'urgent'], 'type': 'string', 'description': 'How urgent the job is. Default normal'}, 'description': {'type': 'string', 'maxLength': 2000, 'description': 'What the job is, e.g. Replace immersion heater and test'}, 'client_email': {'type': 'string', 'maxLength': 200}, 'duplicate_ok': {'type': 'boolean', 'description': 'Raise it even though an identical work order exists, for a genuinely repeated visit. Default false'}, 'site_address': {'type': 'string', 'maxLength': 2000, 'description': 'Where the work happens. This is the site, not the billing address'}, 'client_vat_id': {'type': 'string', 'maxLength': 200}, 'client_address': {'type': 'string', 'maxLength': 2000, 'description': "The client's billing address, for a client that is not in the invoice records yet"}, 'requested_date': {'type': 'string', 'maxLength': 10, 'description': 'The date the work was asked for, YYYY-MM-DD'}}, 'additionalProperties': False}
work_order_delete
Delete a draft work order
Delete a DRAFT work order with no lines, freeing an open slot. One past draft is refused, naming the date it got there, and so is one carrying lines. The WO number is never reissued. work_order_status moves it on.
Destructive
Input schema
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['work_order'], 'properties': {'work_order': {'type': 'string', 'maxLength': 200, 'description': 'The work order id, e.g. WO-2026-0001, or the client name when only one job is theirs'}}, 'additionalProperties': False}
work_order_get
Show one work order
Return one work order in full by WO number or client: the site, every parts and labour line with the unit billed, hours, materials, net and VAT, and the status history. Reads only. Free.
Input schema
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['work_order'], 'properties': {'work_order': {'type': 'string', 'maxLength': 200, 'description': 'The work order id, e.g. WO-2026-0001, or the client name when only one job is theirs'}}, 'additionalProperties': False}
work_order_invoice_payload
Invoice payload for a work order
Build an invoice_create-ready payload from the lines, with VAT at the shared profile rate. Writes nothing and marks nothing: raise the invoice in the invoice server, then set this order invoiced. Pro.
Input schema
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['work_order'], 'properties': {'tax_rate': {'type': 'number', 'maximum': 1000, 'minimum': -100, 'description': "VAT percent per line, overriding the shared business profile's default rate"}, 'issue_date': {'type': 'string', 'maxLength': 10, 'description': 'The invoice issue date, YYYY-MM-DD. Default today'}, 'work_order': {'type': 'string', 'maxLength': 200, 'description': 'The work order id, e.g. WO-2026-0001, or the client name when only one job is theirs'}}, 'additionalProperties': False}
work_order_list
List work orders
List work orders newest requested first: status, priority, client, site, hours, labour, materials and net value, with totals per currency. Filter by status, client and requested-date range. Free.
Input schema
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'to': {'type': 'string', 'maxLength': 10, 'description': 'Latest requested_date, YYYY-MM-DD'}, 'from': {'type': 'string', 'maxLength': 10, 'description': 'Earliest requested_date, YYYY-MM-DD'}, 'limit': {'type': 'integer', 'maximum': 500, 'minimum': 1, 'description': 'Maximum rows returned, default and ceiling 500'}, 'client': {'type': 'string', 'maxLength': 200, 'description': 'Only jobs whose client name contains this text'}, 'status': {'enum': ['draft', 'scheduled', 'in_progress', 'done', 'invoiced', 'open'], 'type': 'string', 'description': 'One status, or open for draft, scheduled and in_progress together'}}, 'additionalProperties': False}
work_orders_report
Report the board
Report the whole board: how many work orders sit at each status, the hours logged this month, and the value not yet invoiced per currency, with the oldest open jobs named. Pro.
Input schema
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'limit': {'type': 'integer', 'maximum': 500, 'minimum': 1, 'description': 'Maximum oldest-open rows listed, default and ceiling 500'}, 'month': {'type': 'string', 'maxLength': 7, 'description': 'The month for the hours figure, YYYY-MM. Default the current month'}}, 'additionalProperties': False}
work_order_status
Move a work order along
Move one work order exactly one step: draft, scheduled, in_progress, done, invoiced, stamping date and note. A skipped, backwards or backdated step is refused and nothing is written. Free.
Input schema
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['work_order', 'status'], 'properties': {'date': {'type': 'string', 'maxLength': 10, 'description': 'The day it reached this status, YYYY-MM-DD. Default today'}, 'note': {'type': 'string', 'maxLength': 2000, 'description': 'What happened, e.g. Booked for Tuesday morning, or Signed off by the tenant'}, 'status': {'enum': ['draft', 'scheduled', 'in_progress', 'done', 'invoiced'], 'type': 'string', 'description': 'The status to move to. It must be the next one along'}, 'work_order': {'type': 'string', 'maxLength': 200, 'description': 'The work order id, e.g. WO-2026-0001, or the client name when only one job is theirs'}}, 'additionalProperties': False}
Changed
license_activate
Sept. 21, 2026, 2:56 a.m.
Changed
license_status
Sept. 21, 2026, 2:56 a.m.
Changed
work_orders_report
Sept. 21, 2026, 2:56 a.m.
Changed
work_order_invoice_payload
Sept. 21, 2026, 2:56 a.m.
Changed
completion_report_pdf
Sept. 21, 2026, 2:56 a.m.
Changed
completion_report_text
Sept. 21, 2026, 2:56 a.m.
Changed
work_order_delete
Sept. 21, 2026, 2:56 a.m.
Changed
work_order_list
Sept. 21, 2026, 2:56 a.m.
Changed
work_order_get
Sept. 21, 2026, 2:56 a.m.
Changed
work_order_status
Sept. 21, 2026, 2:56 a.m.
Changed
work_order_add_line
Sept. 21, 2026, 2:56 a.m.
Changed
work_order_create
Sept. 21, 2026, 2:56 a.m.
Added
license_activate
Sept. 17, 2026, 12:52 p.m.
Added
license_status
Sept. 17, 2026, 12:52 p.m.
Added
work_orders_report
Sept. 17, 2026, 12:52 p.m.
Added
work_order_invoice_payload
Sept. 17, 2026, 12:52 p.m.
Added
completion_report_pdf
Sept. 17, 2026, 12:52 p.m.
Added
completion_report_text
Sept. 17, 2026, 12:52 p.m.
Added
work_order_delete
Sept. 17, 2026, 12:52 p.m.
Added
work_order_list
Sept. 17, 2026, 12:52 p.m.
Added
work_order_get
Sept. 17, 2026, 12:52 p.m.
Added
work_order_status
Sept. 17, 2026, 12:52 p.m.
Added
work_order_add_line
Sept. 17, 2026, 12:52 p.m.
Added
work_order_create
Sept. 17, 2026, 12:52 p.m.