Get Permalink Structure


Returns how the site builds its URLs, plus the category and tag bases. Read-only. Worth checking before changing a slug, because on a site using plain permalinks a slug has no effect on the visible URL at all.

Also known as: URL structure, pretty links, link format, slug format.

Property Value
Ability slug mosmcp/site-get-permalink-structure
Wire tool name mosmcp__site-get-permalink-structure
Category Site Settings (mosmcp-site-settings)
Plan Free

 

Required access

Requirement Value
Capability edit_posts
Minimum default role Contributor
Annotations readOnly: true · destructive: false · idempotent: true · openWorld: false

 

Input schema

Takes no input. Send "input": {} (or omit input).

 

Output schema

Field Type Required Description
structure string Yes The permalink structure string, or empty when the site uses plain query-string URLs.
is_pretty boolean Yes True when the site uses readable URLs rather than query-string ones.
category_base string
tag_base string
sample_url string A real post URL from this site, showing the structure in use.
notes string[]

 

Example

Sample prompt
How are my site's URLs structured?

Example request (json)

{
  "jsonrpc": "2.0",
  "id": 209,
  "method": "tools/call",
  "params": {
    "name": "mosmcp__site-get-permalink-structure",
    "arguments": {
      "input": {}
    }
  }
}

Example response (json)

{
  "jsonrpc": "2.0",
  "id": 209,
  "result": {
    "isError": false,
    "structuredContent": {
      "structure": "/%postname%/",
      "is_pretty": true,
      "category_base": "",
      "tag_base": "",
      "sample_url": "https://example.com/spring-menu-launch/",
      "notes": []
    }
  }
}

 

Edge cases / errors

  • Site uses plain permalinks → structure is empty, is_pretty is false, and a note explains that changing a slug has no visible effect on URLs.
  • No published post exists → sample_url is an empty string.
  • Empty category_base / tag_base means the WordPress defaults ("category" and "tag") are in use.

 


<< Previous Next >>
Get Homepage Settings Get Posts Per Page

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.