@prefix sioc: <http://rdfs.org/sioc/ns#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix content: <http://purl.org/rss/1.0/modules/content/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

<https://lhero.org/?post_type=lh-portfolio-doc&#038;p=147704>
  a sioc:Post ;
  dc:title "MCP abilities" ;
  dcterms:identifier 147704 ;
  dc:modified "2026-09-18T13:52:34Z"^^xsd:dateTime ;
  dc:created "2026-09-17T23:25:39Z"^^xsd:dateTime ;
  sioc:link <https://lhero.org/portfolio/lh-crm/mcp-abilities/> ;
  sioc:has_creator <https://lhero.org/author/1/#account> ;
  sioc:has_container <https://lhero.org/#posts> ;
  content:encoded """<ul class="lh_portfolio-meta"><li><strong>Part of:</strong> <a href="https://lhero.org/portfolio/lh-crm/">LH Customer Relationship Management</a></li></ul>
<p class="wp-block-paragraph">LH CRM registers one ability through the WordPress Abilities API, in category <code>lh-crm</code> (CRM), exposed over MCP. It requires <code>install_plugins</code>.</p>



<h2 class="wp-block-heading">lh-crm/query-enquiries</h2>



<p class="wp-block-paragraph">Returns a paginated list of enquiries on one site, newest first. Only enquiries in the five CRM statuses are returned (scheduled <code>future</code> enquiries are not). Annotated as read-only, not destructive and idempotent.</p>



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



<p class="wp-block-paragraph">The input schema sets <code>additionalProperties</code> to false, so any parameter not listed above is rejected (since 1.5.10).</p>



<p class="wp-block-paragraph">The result holds <code>success</code>, <code>site_id</code>, <code>total</code>, <code>total_pages</code>, <code>page</code>, <code>per_page</code> and <code>enquiries</code>. Each enquiry has <code>id</code>, <code>date</code>, <code>status</code> (full status name), <code>title</code>, <code>excerpt</code>, <code>author</code> (<code>id</code>, <code>display_name</code>, <code>email</code>), <code>form</code> (<code>id</code>, <code>title</code>), <code>page_id</code>, <code>categories</code> (names), <code>notes</code> and <code>edit_url</code>.</p>



<p class="wp-block-paragraph">Example:</p>



<pre class="wp-block-code"><code>{"site_id": 2, "status": "new_enq", "per_page": 10}</code></pre>
"""^^rdf:XMLLiteral ;
  sioc:content """Part of: LH Customer Relationship Management
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.



ParameterTypeDescriptionsite_idinteger, at least 1Site to query. Defaults to the current site. On multisite, a site ID that does not exist returns success: false.statusstring, enumShort status name: new_enq, prog_enq, pending_enq, res_enq or clos_enq. Omit for all five.form_idintegerOnly enquiries from this contact formauthor_idintegerOnly enquiries from this usercategorystringlh_crm-category term slugsearchstringText search on title and contentper_pageinteger, 1 to 100Default 20pageinteger, at least 1Default 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}
""" ;
  sioc:topic <https://lhero.org/?taxonomy=author&term=cap-1> .

<https://lhero.org/author/1/#account> rdfs:seeAlso <https://lhero.org/author/1/?feed=lhrdf&format=turtle> .
<https://lhero.org/?taxonomy=author&term=cap-1> rdfs:seeAlso <https://lhero.org/?taxonomy=author&term=cap-1&feed=lhrdf&format=turtle> .
