Call REST Route
Calls a WordPress REST API route and returns its response. Can create, update and delete content, so confirm the route and parameters before calling it with a write method. The call is refused unless this connection has been granted that route and method, and the endpoint's own permission check also applies. Use "_fields" to keep responses small; large list responses are trimmed. Never put credentials, API keys or tokens in params, and never ask the user for them.
| Property | Value |
|---|---|
| Ability slug | mosmcp/rest-call |
| Wire tool name | mosmcp__rest-call |
| Category | REST API (mosmcp-rest) |
| Plan | Free |
Required access
| Requirement | Value |
|---|---|
| Capability | edit_posts |
| Minimum default role | Contributor |
| Annotations | readOnly: false · destructive: true · idempotent: false · openWorld: false |
Input schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| route | string | Yes | — | Route to call, with any path placeholders filled in, for example "/wp/v2/posts" or "/wp/v2/posts/42". |
| method | string (one of GET, POST, PATCH, PUT, DELETE) |
Yes | — | HTTP method to use. |
| params | object | — | Request parameters. Query parameters for GET and DELETE, request body for POST, PATCH and PUT. | |
| _fields | string | — | Comma-separated list of response fields to return, for example "id,title,status". Strongly recommended on list routes. |
Output schema
No structured output.
| << Previous | Next >> |
|---|---|
| Revoke Preview Links | Describe REST Route |
For more information about the Secure MCP Server for WordPress plugin, explore the following resources:
Product Overview | Pricing | Try for Free | Documentation
If you have any questions regarding plugin configuration, pricing plans or licensing, please contact us or mail us at aisupport@xecurify.com.