Helping Organisations get organised!

MCP abilities

LH CRM registers one ability through the WordPress Abilities API, in category lh-crm (CRM), exposed over MCP. It requires install_plugins.

lh-crm/query-enquiries

Returns a paginated list of enquiries on one site, newest first. Only enquiries in the five CRM statuses are returned (scheduled future enquiries are not). Annotated as read-only, not destructive and idempotent.

Parameter Type Description
site_id integer, at least 1 Site to query. Defaults to the current site. On multisite, a site ID that does not exist returns success: false.
status string, enum Short status name: new_enq, prog_enq, pending_enq, res_enq or clos_enq. Omit for all five.
form_id integer Only enquiries from this contact form
author_id integer Only enquiries from this user
category string lh_crm-category term slug
search string Text search on title and content
per_page integer, 1 to 100 Default 20
page integer, at least 1 Default 1

The input schema sets additionalProperties to false, so any parameter not listed above is rejected (since 1.5.10).

The result holds success, site_id, total, total_pages, page, per_page and enquiries. Each enquiry has id, date, status (full status name), title, excerpt, author (id, display_name, email), form (id, title), page_id, categories (names), notes and edit_url.

Example:

{"site_id": 2, "status": "new_enq", "per_page": 10}

If you like this plugin please consider making a donation to further development