Skip to main content
Glama

learn_wordpress_api

Call first to initialize a WordPress API session, get the required conversationId, and reuse it to load contexts such as REST API, hooks, blocks, plugins, or WooCommerce.

Instructions

🚨 MANDATORY FIRST STEP: Call this tool BEFORE any other WordPress tool. Returns a conversationId required for all subsequent tool calls. Call multiple times with the same conversationId to load different API contexts. Valid APIs: rest-api, hooks, blocks, themes, plugins, woocommerce, wp-cli, gutenberg, multisite, custom-fields.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "api": "<api>"
    },
    "name": "learn_wordpress_api"
  }
}

Input Schema

NameRequiredDescriptionDefault
apiYesThe WordPress API domain to learn about. Valid values: - rest-api: WordPress REST API for CRUD operations - hooks: Actions and Filters system - blocks: Block development (Gutenberg blocks, block.json) - themes: Theme development (classic & block themes, theme.json) - plugins: Plugin development - woocommerce: WooCommerce development and WC REST API - wp-cli: WP-CLI command-line management - gutenberg: Block Editor / Full Site Editing internals - multisite: WordPress Multisite network - custom-fields: Custom fields, post meta, user meta, options API
conversationIdNoPass an existing conversationId to add a new API context to the current conversation. Omit for the first call to create a new conversation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the full behavioral burden. It does disclose the key behavior — that the call returns a conversationId and that subsequent calls can extend a conversation — but says nothing about what a 'learned' context actually yields, whether it is cached, or whether repeated calls without a conversationId create stray conversations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short lines, front-loaded with the imperative requirement and the returned value, so the essential fact lands first. The trailing 'Valid APIs' sentence duplicates the schema enum and could be dropped, and the alarm emoji is stylistically loud but arguably earns its place given the mandatory-first-step claim.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a prerequisite/context-loader tool with two parameters and no output schema, the description covers the essentials: when to call, what it returns, and how to chain calls. What is missing is what the agent gets back beyond an ID — whether document content is returned, cached for later reads, or merely registered — which matters because every sibling tool depends on this one.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, and the enum's per-value descriptions are more informative than the flat list in the description ('rest-api, hooks, blocks...'). The 'Pass an existing conversationId... Omit for the first call' line adds a little usage meaning beyond the schema, but the valid-API list is redundant repetition of the enum.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific action (learn a WordPress API domain) and, critically, its position in the workflow: it is the mandatory first call that returns a conversationId consumed by every later tool. That ordering constraint is exactly what distinguishes it from siblings like introspect_rest_api or fetch_full_docs, which an agent might otherwise reach for first.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use guidance ('Call this tool BEFORE any other WordPress tool') plus the non-obvious multi-call pattern: reuse the same conversationId to accumulate different API contexts. This is the kind of sequencing rule an agent cannot infer from the name or schema.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.