Get Tag


Gets the details of a single post tag by its ID: name, slug, description, and how many posts use it.

Property Value
Ability slug mosmcp/tag-get
Wire tool name mosmcp__tag-get
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
id integer (min 1) Yes — The ID of the tag to retrieve.

 

Output schema

Field Type Required
id integer Yes
name string Yes
slug string
description string
post_count integer Yes
edit_url string

 

Example

Sample prompt
How many posts use tag 45?

Example request (json)

{
  "jsonrpc": "2.0",
  "id": 71,
  "method": "tools/call",
  "params": {
    "name": "mosmcp__tag-get",
    "arguments": {
      "input": {
        "id": 45
      }
    }
  }
}

Example response (json)

{
  "jsonrpc": "2.0",
  "id": 71,
  "result": {
    "isError": false,
    "structuredContent": {
      "id": 45,
      "name": "Vegan",
      "slug": "vegan",
      "description": "Plant-based recipes.",
      "post_count": 7,
      "edit_url": "https://example.com/wp-admin/term.php?taxonomy=post_tag&tag_ID=45"
    }
  }
}

 

Edge cases / errors

  • id does not exist → refused with tag_not_found.
  • post_count is WordPress's stored term count (published posts), so drafts may not be reflected.

 


<< Previous Next >>
Find Tag (ID by Name / Name by ID) List All Tags

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.