← Back to Tools Reference

wp_get_category

Read-only

Description

Use this tool to retrieve the complete details of a specific category, including its name, slug, description, parent, and post count. Your AI uses this when it needs to verify category information before making edits or assigning it to new posts.

See it in action

Claude Desktop — MCP Connection
👤
Fetch the 'Tutorials' category so I can see its current slug and description before we change it.
🤖
Calling Tool: wp_get_category
Done! I've used wp_get_category to complete that for you.
{"status": "success"}

Example Use Cases & Sample Prompts

  1. Checking before editing
    • Prompt: “Fetch the ‘Tutorials’ category so I can see its current slug and description before we change it.”
  2. Verifying structure
    • Prompt: “Look up the ‘Security’ category and tell me if it has a parent category.”
  3. Post count check
    • Prompt: “How many posts are currently in the ‘News’ category?”
  4. Confirming a slug
    • Prompt: “What is the exact slug for the ‘Case Studies’ category?”
  5. Hierarchy review
    • Prompt: “Get the ‘Advanced Guides’ category and tell me if it’s a subcategory or standalone.”

Access this tool today

Install the Easy MCP AI plugin to securely expose wp_get_category to Claude, ChatGPT, and more.

Download Plugin