introspect_rest_api
Discover WordPress REST API endpoints and schemas by searching names, descriptions, or HTTP methods. Use it to find available routes, their arguments, and response schemas before calling them.
Instructions
Explore WordPress REST API endpoints and their schemas. Search for endpoints by name, description, or HTTP method. Works with built-in schema reference or optionally with a live WordPress site via siteUrl parameter. Use this to discover available endpoints, their arguments, and response schemas.
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": {
"query": "<query>",
"conversationId": "<conversationId>"
},
"name": "introspect_rest_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search query to find relevant REST API endpoints. Examples: 'posts', 'users', 'create page', 'media upload', 'categories', 'settings'. Use specific terms for better results. | |
| method | No | Filter endpoints by HTTP method. | |
| siteUrl | No | Optional: URL of a live WordPress site to fetch real endpoint discovery data. Example: 'https://example.com'. If omitted, uses the built-in schema reference. | |
| namespace | No | Filter endpoints by namespace. Examples: 'wp/v2', 'wc/v3'. Leave empty to search all namespaces. | |
| conversationId | Yes | The conversation ID obtained from learn_wordpress_api. |