MCP tools¶
Every tool OG AI Core's MCP servers offer, grouped by tool set. Turn tool sets on and off in Settings > MCP > MCP Tool Sets. See MCP to connect an AI app.
There are two servers:
- The admin MCP server (
/wp-json/mcp/v1/http): all tool sets below. For administrators. - The Public MCP (
/wp-json/ogaie-public/v1/mcp): its own five read-only tools, for anyone. It never sees the admin tools.
Who may call a tool¶
Each admin tool has an access level: read, write or admin.
| Connection | What it can use |
|---|---|
OAuth, as an administrator (manage_options) |
Every tool that is switched on. |
| OAuth, as an editor (only with Editor Access on) | Content tools only (marked E below). Each call is checked against what that user may do in WordPress, so an editor reaches exactly what the dashboard lets them reach. |
| Bearer token | Filtered by Access Level: Admin (Full Access) = all levels; Read-Write (Content) = read and write; Read-Only (Browse) = read only. |
| Anyone else | Nothing. The admin server refuses the request. |
Tool sets added by modules (CoreMail, Knowledge, Workflow, Forms, Leads, OG Enhanced Login) are admin level, so a Read-Write or Read-Only token never sees them. The module tool sets (CoreMail, Knowledge, Workflow, Forms, Leads, OG Enhanced Login) ask for confirm: true on every tool that changes something: the AI app must tell you what it will do and get your go-ahead first. wp_db_query needs confirm_write for queries that write.
The same tools are available to the Workspace and to Agents.
Always on¶
| Tool | Level | What it does |
|---|---|---|
mcp_ping |
read, E | Connectivity check. Returns the current GMT time and the site name. |
WordPress¶
Set WordPress (mcp_core, on by default). Free.
Posts and pages¶
| Tool | Level | Key arguments | What it does |
|---|---|---|---|
wp_get_posts |
read, E | post_type, post_status, search, author, after, before, limit, offset |
List posts (ID, title, status, excerpt, link). |
wp_get_post |
read, E | ID, content_format |
One post: title, content, status, dates, permalink. |
wp_get_post_snapshot |
read, E | ID, include, exclude, content_format |
Everything about a post in one call: fields, meta, terms, featured image, author. |
wp_count_posts |
read, E | Post counts by status. | |
wp_get_post_types |
read, E | Public post types. | |
wp_create_post |
write, E | post_title (required), post_content, post_status, post_type, post_name, meta_input |
Create a post, page or custom post. |
wp_update_post |
write, E | ID, fields, meta_input, schedule_for |
Change fields and meta in one call. |
wp_alter_post |
write, E | ID, field, search, replace, regex |
Search and replace inside one field. |
wp_write_blocks |
write, E | ID, blocks, mode |
Build valid block-editor content from a simple block list. |
wp_list_block_patterns |
read, E | search, category, include_content, limit |
Block patterns on the site. |
wp_insert_block_pattern |
write, E | ID, pattern, mode |
Insert a pattern into a post. |
wp_delete_post |
admin | ID, force |
Trash or delete a post. |
Meta, terms and comments¶
| Tool | Level | What it does |
|---|---|---|
wp_get_post_meta |
read, E | Read post meta. |
wp_update_post_meta |
write, E | Set post meta. |
wp_delete_post_meta |
admin | Delete post meta. |
wp_get_taxonomies |
read, E | Taxonomies of a post type. |
wp_get_terms |
read, E | Terms of a taxonomy. |
wp_count_terms |
read, E | Number of terms. |
wp_get_post_terms |
read, E | Terms on a post. |
wp_create_term |
write, E | Create a term. |
wp_update_term |
write, E | Change a term. |
wp_add_post_terms |
write, E | Attach or replace terms on a post. |
wp_delete_term |
admin | Delete a term. |
wp_get_comments |
read, E | List comments. |
wp_create_comment |
write, E | Add a comment. |
wp_update_comment |
write, E | Change or approve a comment. |
wp_delete_comment |
admin | Delete a comment. |
wp_create_note |
write, E | Add an editor Note to a block (WordPress 6.9+). |
wp_update_note |
write, E | Edit a note, or resolve or reopen its thread. |
wp_delete_note |
write, E | Delete a note. |
Media and images¶
| Tool | Level | What it does |
|---|---|---|
wp_get_media |
read, E | List media. |
wp_count_media |
read, E | Number of attachments. |
wp_upload_media |
write, E | Upload from a URL or base64. |
wp_upload_request |
write, E | Get a one-time address to upload a local file (/wp-json/mcp/v1/upload/<token>). |
wp_update_media |
write, E | Change title, caption, description or alt text. |
wp_set_featured_image |
write, E | Set or remove a post's featured image. |
wp_delete_media |
admin | Trash or delete an attachment. |
ogaie_vision |
read, E | Describe an image with your Vision model (message, url or path). |
ogaie_image |
write, E | Generate an image and save it to the Media Library (message, plus optional model, size, quality, title, alt). |
ogaie_jellybean |
write, E | Make an image from the OG Jellybean preset in Make images. On a site without that preset it answers with an error. |
Users, options and plugins¶
| Tool | Level | What it does |
|---|---|---|
wp_list_plugins |
read | Installed plugins (name and version). |
wp_get_users |
admin | List users. |
wp_create_user |
admin | Create a user. |
wp_update_user |
admin | Change a user. |
wp_get_option |
admin | Read an option. |
wp_update_option |
admin | Create or change an option. |
Plugins (Pro)¶
Set Plugins (mcp_plugins). All admin level.
| Tool | What it does |
|---|---|
wp_list_plugins_detailed |
Installed plugins with slug, version, active, editable and update available. |
wp_install_plugin |
Install from the WordPress.org directory by slug, optionally activate. |
wp_update_plugin |
Update an installed plugin from whatever update source WordPress knows for it. |
wp_activate_plugin, wp_deactivate_plugin |
Turn a plugin on or off. |
wp_create_plugin, wp_copy_plugin, wp_rename_plugin, wp_delete_plugin |
Create, copy, rename or delete a plugin made with these tools. |
wp_plugin_list_dir, wp_plugin_mkdir, wp_plugin_get_file, wp_plugin_put_file, wp_plugin_alter_file, wp_plugin_delete_path |
Work with files inside such a plugin. |
Themes (Pro)¶
Set Themes (mcp_themes). All admin level.
| Tool | What it does |
|---|---|
wp_list_themes |
Installed themes. |
wp_install_theme, wp_update_theme, wp_switch_theme |
Install from WordPress.org, update or activate a theme. |
wp_create_theme, wp_copy_theme, wp_rename_theme, wp_delete_theme |
Create, copy, rename or delete a theme made with these tools. |
wp_theme_list_dir, wp_theme_mkdir, wp_theme_get_file, wp_theme_put_file, wp_theme_alter_file, wp_theme_delete_path |
Work with files inside such a theme. |
wp_theme_set_screenshot |
Set the theme screenshot from a URL or path. |
Database (Pro)¶
Set Database (mcp_database).
| Tool | Level | What it does |
|---|---|---|
wp_db_query |
admin | Run a SQL query and return the rows. Writing queries need confirm_write. |
WooCommerce (Pro)¶
Set WooCommerce (mcp_woocommerce). Listed only while WooCommerce is active.
| Level | Tools |
|---|---|
| read | wc_list_products, wc_get_product, wc_list_orders, wc_get_order, wc_get_orders_by_customer, wc_get_sales_report, wc_get_top_sellers, wc_get_revenue_stats, wc_get_low_stock_products, wc_get_stock_report, wc_list_customers, wc_get_customer, wc_list_reviews |
| write | wc_create_product, wc_update_product, wc_alter_product, wc_update_order_status, wc_add_order_note, wc_update_stock, wc_bulk_update_stock, wc_update_customer, wc_approve_review |
| admin | wc_delete_product, wc_create_refund, wc_delete_review |
Orders are read through WooCommerce's own functions, so both order storages (HPOS and posts) work.
Polylang and WPML (Pro)¶
Sets Polylang (mcp_polylang) and WPML (mcp_wpml). Each is listed only while its plugin is active.
| Polylang | WPML | Level | What it does |
|---|---|---|---|
pll_get_languages |
wpml_get_languages |
read | Configured languages. |
pll_get_post_language |
wpml_get_post_language |
read | A post's language. |
pll_set_post_language |
wpml_set_post_language |
write | Set a post's language. |
pll_get_post_translations |
wpml_get_post_translations |
read | A post's translations. |
pll_link_translations |
wpml_link_translations |
write | Link posts as translations. |
pll_get_term_translations |
wpml_get_term_translations |
read | A term's translations. |
pll_translate_term |
wpml_translate_term |
read | One translation of a term. |
pll_get_posts |
wpml_get_posts |
read | Posts in a language. |
pll_get_posts_missing_translation |
wpml_get_posts_missing_translation |
read | Posts missing a translation. |
pll_create_translation |
wpml_create_translation |
write | Create a translated copy of a post. |
pll_translation_status |
wpml_translation_status |
read | Translation coverage overview. |
CoreMail¶
Set CoreMail (mcp_coremail, off by default). Free. Listed only while the CoreMail module runs. Passwords, API keys, tokens and the alerts webhook are never returned.
| Tool | Key arguments | What it does |
|---|---|---|
ogmail_get_status |
Which provider sends the site's email, fallback, logging and recent failures. | |
ogmail_list_emails |
limit, page, status, search, days |
The email log, newest first. |
ogmail_get_email |
id, include_body, max_chars |
One logged email. |
ogmail_send_test |
to, format, target, confirm |
Send CoreMail's test email. |
ogmail_send_email |
to, subject, body, html, reply_to, confirm |
Send an email from the site's From address. |
Knowledge (Pro)¶
Set Knowledge (mcp_knowledge). Needs the Knowledge module. API keys and server addresses are never returned.
| Tool | Key arguments | What it does |
|---|---|---|
ogkb_get_status |
Knowledge environments, the default, and entry counts. | |
ogkb_list_entries |
env_id, search, title, type, limit, page |
List entries, or AI-search them with search. |
ogkb_get_entry |
id |
One entry with its full content. |
ogkb_add_entry |
title, content, env_id, confirm |
Add and embed an entry. |
ogkb_update_entry |
id, title, content, confirm |
Change an entry; changed content is embedded again. |
ogkb_sync_post |
post_id, env_id, confirm |
Add a post to the knowledge, or refresh it. |
Workflow (Pro)¶
Set Workflow (mcp_workflow). Needs the Workflow module.
| Tool | Key arguments | What it does |
|---|---|---|
ogflow_list_flows |
Workflows with trigger, state and last run. | |
ogflow_get_flow |
id |
Steps, draft, trigger and any problems. |
ogflow_list_integrations |
The triggers and steps a flow can use. | |
ogflow_list_runs |
flow_id, limit |
Recent runs. |
ogflow_get_run |
id |
One run with each step's result. |
ogflow_run_flow |
id, payload, confirm |
Run a flow once and wait for the result. |
ogflow_create_flow |
name, confirm |
Create a flow. |
ogflow_update_flow |
id, confirm |
Change a flow's draft. |
ogflow_publish_flow |
id, confirm |
Publish a flow's draft. |
Forms (Pro)¶
Set Forms (mcp_forms).
| Tool | Key arguments | What it does |
|---|---|---|
ogforms_get_status |
Whether AI Forms and Contact Form are on, saved forms, and Contact Form settings. | |
ogforms_list_forms |
Saved AI Forms with their [ogaie_form id=".."] shortcode, and every page that holds a form. |
|
ogforms_get_form |
id |
One saved AI Form. |
ogforms_create_form |
title, content, status, confirm |
Create a saved AI Form. |
ogforms_update_form |
id, title, content, status, confirm |
Change a saved AI Form. |
ogforms_update_contact_settings |
settings, confirm |
Change the Contact Form settings, such as the email subject and content. |
Leads (Pro)¶
Set Leads (mcp_leads). Leads hold personal data: these tools are never part of the Public MCP.
| Tool | Key arguments | What it does |
|---|---|---|
ogleads_get_stats |
Totals by status, source and form; new leads in the last 7 and 30 days. | |
ogleads_list_leads |
limit, page, filters |
Leads, newest first. |
ogleads_get_lead |
key (el:123 or og:45) |
One lead with every field, the AI answer, the status and the notes. |
ogleads_update_lead |
key, status, note, confirm |
Set the status and/or add a note. |
ogleads_export_summary |
filters, limit |
CSV of matching leads (up to 1,000 rows) plus counts. |
OG Enhanced Login (Pro)¶
No switch: listed only while OG Enhanced Login is active. Secret keys are never shown or set.
| Tool | What it does |
|---|---|
ogel_get_status |
Version and which features are on. |
ogel_get_settings, ogel_update_settings |
Read or change one settings group. |
ogel_guard_list |
Admin guard lists: addresses waiting for review, blocked addresses and ban appeals. |
ogel_ip_action |
Act on addresses in the Admin guard and lockouts. |
ogel_signin_log |
Failed sign-ins, Admin guard hits and current lockouts. |
ogel_approval_list, ogel_approval_action |
New accounts waiting for approval, and approve or deny them. |
ogel_password_reset_list, ogel_force_password_reset |
Forced password resets: list them, or force one (signs the person out everywhere). |
From WordPress¶
Abilities¶
Set Abilities (mcp_abilities, off by default). Needs WordPress 6.9+. Abilities that other plugins register through the WordPress Abilities API become MCP tools, when the ability opts in to public exposure (meta.mcp.public or meta.show_in_rest). An explicit meta.mcp.public = false keeps it out. Permissions stay with the ability: its own permission check runs for the connected user. Filter the list with ogaie_mcp_abilities.
Dynamic REST¶
Set Dynamic REST (mcp_dynamic_rest, off by default). Tools built from the WordPress REST API for posts, pages and media:
| Tools | Level |
|---|---|
list_posts, get_posts, list_pages, get_pages, list_media, get_media |
read |
create_*, update_* for each |
write |
delete_* for each |
admin |
Public MCP¶
The Public MCP module's own server. Read-only, no sign-in, rate limited.
| Tool | Arguments | What it does |
|---|---|---|
site_info |
Site name, description, language, store currency. | |
search_content |
query, type, limit, lang |
Search public posts, pages and products. |
get_page |
url |
Read one public page. |
list_products |
search, category, limit, lang |
List store products (WooCommerce). |
get_product |
url or id |
One product with price, stock and variations. |
Add your own tools¶
Register tools with the ogaie_mcp_tools filter and answer calls with ogaie_mcp_callback. Set accessLevel to read, write or admin; a tool without one counts as admin.
add_filter( 'ogaie_mcp_tools', function ( $tools ) {
$tools[] = [
'name' => 'my_store_hours',
'description' => 'Today\'s opening hours.',
'category' => 'My plugin',
'inputSchema' => [ 'type' => 'object', 'properties' => (object) [] ],
'accessLevel' => 'read',
];
return $tools;
} );
add_filter( 'ogaie_mcp_callback', function ( $result, $tool, $args, $id, $server ) {
if ( $tool !== 'my_store_hours' ) {
return $result;
}
return [ 'open' => '09:00', 'close' => '17:30' ];
}, 10, 5 );
After each call, ogaie_mcp_tool_called fires with the tool, arguments, result, status, duration and client. See PHP filters and actions and Use MCP.