MCP abilities

Add Member Note

lh-crm/add-note

Adds a committee note about one or more members of one site. Write it as if the member might read it one day: tie opinions to what happened, no labels, and no health information or other sensitive personal details. source records where it came from and is kept separately so it can be redacted. valid_from and expires (YYYY-MM-DD) bound when the note is current; after its expiry date it is archived, never deleted. Requires edit_member_notes (committee roles); one site. Pass site_id to act on another site you belong to.

ParameterTypeRequiredDefaultDescription
subject_user_idsarray of integerYesUser IDs of the members the note is about.
contentstringYes
typestringYesOne of: fact, opinion, availability, conduct.
sourcestringNoWhere the note came from, for example raised by a team captain.
valid_fromstringNo
expiresstringNo
relatedarray of objectNoLinks to related things: objects with type (for example group, task, enquiry, email or url) and an id, url or label.
task_idintegerNoOptional. The lh-tasks task this call is working on. Pass with claim_token: the call is refused unless you hold that claim, and a successful call renews it.
claim_tokenstringNoOptional. The claim_token from claim-next-task for task_id. Required when task_id is given.
site_idintegerNoOptional. ID of another site in the network to act on; list-my-sites gives the sites you belong to. Permissions are checked on that site. Omit for this site.
run_without_site_pluginsbooleanNoOptional, with site_id. Run the call through this connector even when that site has plugins of its own that cannot be loaded for it. Without this, such a write is refused if it cannot be run on that site itself.

Archive Member Note

lh-crm/archive-note Idempotent

Archives a member note on one site straight away by setting its expiry to yesterday, unless it has already expired. Nothing is deleted. unarchive: true clears the expiry instead, making the note current again. Requires edit_member_notes (committee roles); one site. Pass site_id to act on another site you belong to.

ParameterTypeRequiredDefaultDescription
note_idintegerYes
unarchivebooleanNofalse
task_idintegerNoOptional. The lh-tasks task this call is working on. Pass with claim_token: the call is refused unless you hold that claim, and a successful call renews it.
claim_tokenstringNoOptional. The claim_token from claim-next-task for task_id. Required when task_id is given.
site_idintegerNoOptional. ID of another site in the network to act on; list-my-sites gives the sites you belong to. Permissions are checked on that site. Omit for this site.
run_without_site_pluginsbooleanNoOptional, with site_id. Run the call through this connector even when that site has plugins of its own that cannot be loaded for it. Without this, such a write is refused if it cannot be run on that site itself.

List Member Notes

lh-crm/list-notes Read-only Idempotent

Lists the committee's notes about members on one site, newest first: content, type (fact, opinion, availability or conduct), the members it is about, author, source, valid-from and expiry dates, related links and whether it is archived. By default only current notes are returned (no expiry, or expiry today or later). active_on returns the notes current on a given day, counting valid-from and expiry, for example who is unavailable on a match day. Filter by subject_user_ids (any of) and type. Requires read_member_notes (committee roles); one site. Pass site_id to act on another site you belong to.

ParameterTypeRequiredDefaultDescription
subject_user_idsarray of integerNoOnly notes about any of these members.
typestringNoOne of: fact, opinion, availability, conduct.
include_archivedbooleanNofalseAlso return archived notes. Ignored when active_on is given.
active_onstringNoYYYY-MM-DD: only notes current that day.
per_pageintegerNo50
pageintegerNo1
site_idintegerNoOptional. ID of another site in the network to act on; list-my-sites gives the sites you belong to. Permissions are checked on that site. Omit for this site.
run_without_site_pluginsbooleanNoOptional, with site_id. Run the call through this connector even when that site has plugins of its own that cannot be loaded for it. Without this, such a write is refused if it cannot be run on that site itself.

Query Enquiries

lh-crm/query-enquiries Read-only Idempotent

Returns a paginated list of enquiries with the enquirer (author), status, parent form, date, and notes. Supports filtering by status, form, enquirer, and category. The enquirer is the person the enquiry is from, who may not be the account that created it. Requires install_plugins. Pass site_id to act on another site you belong to.

ParameterTypeRequiredDefaultDescription
statusstringNoFilter by status slug: new_enq, prog_enq, pending_enq, res_enq, clos_enq. Omit for all statuses. One of: new_enq, prog_enq, pending_enq, res_enq, clos_enq.
form_idintegerNoFilter by parent contact form post ID.
author_idintegerNoFilter by enquirer user ID: the person the enquiry is from, who may not be the account that created it.
categorystringNoFilter by enquiry category slug.
per_pageintegerNoNumber of results per page. Default 20, max 100.
pageintegerNoPage number. Default 1.
searchstringNoSearch string matched against enquiry title and content.
site_idintegerNoOptional. ID of another site in the network to act on; list-my-sites gives the sites you belong to. Permissions are checked on that site. Omit for this site.
run_without_site_pluginsbooleanNoOptional, with site_id. Run the call through this connector even when that site has plugins of its own that cannot be loaded for it. Without this, such a write is refused if it cannot be run on that site itself.

Update Member Note

lh-crm/update-note Idempotent

Changes a member note on one site. Only the fields given change. subject_user_ids and related replace the whole list. An empty string for source, valid_from or expires clears it. Each change is kept as a revision and logged in the audit trail. Requires edit_member_notes (committee roles); one site. Pass site_id to act on another site you belong to.

ParameterTypeRequiredDefaultDescription
note_idintegerYes
subject_user_idsarray of integerNo
contentstringNo
typestringNoOne of: fact, opinion, availability, conduct.
sourcestringNo
valid_fromstringNoYYYY-MM-DD, or empty to clear.
expiresstringNoYYYY-MM-DD, or empty to clear.
relatedarray of objectNoLinks to related things: objects with type (for example group, task, enquiry, email or url) and an id, url or label.
task_idintegerNoOptional. The lh-tasks task this call is working on. Pass with claim_token: the call is refused unless you hold that claim, and a successful call renews it.
claim_tokenstringNoOptional. The claim_token from claim-next-task for task_id. Required when task_id is given.
site_idintegerNoOptional. ID of another site in the network to act on; list-my-sites gives the sites you belong to. Permissions are checked on that site. Omit for this site.
run_without_site_pluginsbooleanNoOptional, with site_id. Run the call through this connector even when that site has plugins of its own that cannot be loaded for it. Without this, such a write is refused if it cannot be run on that site itself.