Find Tag (ID by Name / Name by ID)
Looks up post tags to resolve a tag ID from a name, or a name from an ID. Use this FIRST whenever the user refers to a tag by name and another ability requires a tag ID. Provide "search" with the full or partial tag name, or provide "id".
| Property | Value |
|---|---|
| Ability slug | mosmcp/tag-find |
| Wire tool name | mosmcp__tag-find |
| Category | Tags (mosmcp-tags) |
| Plan | Free |
Required access
| Requirement | Value |
|---|---|
| Capability | edit_posts |
| Minimum default role | Contributor |
| Annotations | readOnly: true · destructive: false · idempotent: true · openWorld: false |
Input schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| search | string (min length 1) | — | Full or partial tag name to search for. Provide either this or "id". | |
| id | integer (min 1) | — | A tag ID to look up. Provide either this or "search". |
Output schema
| Field | Type | Required |
|---|---|---|
| showing | integer | Yes |
| total | integer | Yes |
| matches | object[] | Yes |
| matches[].id | integer | Yes |
| matches[].name | string | Yes |
| matches[].slug | string | |
| matches[].description | string | |
| matches[].post_count | integer | Yes |
| matches[].edit_url | string |
Example
Sample prompt
Do we have a tag for 'vegan'? What's its ID?
Example request (json)
{
"jsonrpc": "2.0",
"id": 70,
"method": "tools/call",
"params": {
"name": "mosmcp__tag-find",
"arguments": {
"input": {
"search": "vegan"
}
}
}
}Example response (json)
{
"jsonrpc": "2.0",
"id": 70,
"result": {
"isError": false,
"structuredContent": {
"showing": 1,
"total": 1,
"matches": [
{
"id": 45,
"name": "Vegan",
"slug": "vegan",
"description": "",
"post_count": 7,
"edit_url": "https://example.com/wp-admin/term.php?taxonomy=post_tag&tag_ID=45"
}
]
}
}
}
Edge cases / errors
- Neither search nor id provided → refused with missing_input.
- id that does not exist → an empty matches list rather than an error.
- search includes unused tags, is ordered by name and returns at most 10 matches; total gives the full count.
| << Previous | Next >> |
|---|---|
| Delete Tag | Get Tag |
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.