Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Posts

Posts abilities of the Hostinger AI plugin's WordPress site MCP server. Search, read, create, update and delete blog posts.

Search, read, create, update and delete blog posts.

Available: Always.

Ability
What it does
Type

Create a new WordPress post.

Changes the site

Delete a WordPress post by ID.

Destructive · Safe to retry

Get a single WordPress post by ID.

Read-only

Search and filter WordPress posts with pagination.

Read-only

Update an existing WordPress post by ID.

Changes the site · Safe to retry

Create Post

hostinger-ai/posts-create · Changes the site

Create a new WordPress post.

No required parameters.

Optional parameters (16)
Parameter
Type
Description

slug

string

An alphanumeric identifier for the post unique to its type.

status

one of publish, future, draft, pending, private, in-progress, failed, wc-pending, wc-processing, wc-on-hold, wc-completed, wc-cancelled, wc-refunded, wc-failed, wc-checkout-draft

A named status for the post.

password

string

A password to protect access to the content and excerpt.

title

object

The title for the post.

content

object

The content for the post.

author

integer

The ID for the author of the post.

excerpt

object

The excerpt for the post.

featured_media

integer

The ID of the featured media for the post.

comment_status

one of open, closed

Whether or not comments are open on the post.

ping_status

one of open, closed

Whether or not the post can be pinged.

format

one of standard, aside, chat, gallery, link, image, quote, status, video, audio

The format for the post.

meta

object

Meta fields.

sticky

boolean

Whether or not the post should be treated as sticky.

template

string

The theme file to use to display the post.

categories

array of integer

The terms assigned to the post in the category taxonomy.

tags

array of integer

The terms assigned to the post in the post_tag taxonomy.

Description sent to AI tools

Create a new WordPress post. Requires title and content. The response includes view_url and edit_url. After successful creation, always include a direct link to the new post in your reply (view_url if published, otherwise edit_url).

Delete Post

hostinger-ai/posts-delete · Destructive · Safe to retry

Delete a WordPress post by ID.

Required parameter
Type
Description

id

integer

Unique identifier for the resource

Description sent to AI tools

Delete a WordPress post by ID. This action cannot be undone.

Get Post

hostinger-ai/posts-get · Read-only

Get a single WordPress post by ID.

Required parameter
Type
Description

id

integer

Unique identifier for the resource

Description sent to AI tools

Get a single WordPress post by ID. Returns the full post object with all fields.

Search Posts

hostinger-ai/posts-search · Read-only

Search and filter WordPress posts with pagination.

No required parameters.

Optional parameters (23)
Parameter
Type
Default
Description

context

one of view, embed, edit

view

Scope under which the request is made; determines fields present in response.

page

integer

1

Current page of the collection.

per_page

integer

10

Maximum number of items to be returned in result set.

search

string

Limit results to those matching a string.

author

array of integer

[]

Limit result set to posts assigned to specific authors.

author_exclude

array of integer

[]

Ensure result set excludes posts assigned to specific authors.

exclude

array of integer

[]

Ensure result set excludes specific IDs.

include

array of integer

[]

Limit result set to specific IDs.

search_semantics

one of exact

How to interpret the search input.

offset

integer

Offset the result set by a specific number of items.

order

one of asc, desc

desc

Order sort attribute ascending or descending.

orderby

one of author, date, id, include, modified, parent, relevance, slug, include_slugs, title

date

Sort collection by post attribute.

search_columns

array of post_title, post_content, post_excerpt

[]

Array of column names to be searched.

slug

array of string

Limit result set to posts with one or more specific slugs.

status

array of publish, future, draft, pending, private, trash, auto-draft, inherit, request-pending, request-confirmed, request-failed, request-completed, in-progress, failed, wc-pending, wc-processing, wc-on-hold, wc-completed, wc-cancelled, wc-refunded, wc-failed, wc-checkout-draft, any

publish

Limit result set to posts assigned one or more statuses.

tax_relation

one of AND, OR

Limit result set based on relationship between multiple taxonomies.

categories

array of string or number or boolean or integer or null

Limit result set to items with specific terms assigned in the categories taxonomy.

categories_exclude

array of string or number or boolean or integer or null

Limit result set to items except those with specific terms assigned in the categories taxonomy.

tags

array of string or number or boolean or integer or null

Limit result set to items with specific terms assigned in the tags taxonomy.

tags_exclude

array of string or number or boolean or integer or null

Limit result set to items except those with specific terms assigned in the tags taxonomy.

sticky

boolean

Limit result set to items that are sticky.

ignore_sticky

boolean

true

Whether to ignore sticky posts or not.

format

array of standard, aside, chat, gallery, link, image, quote, status, video, audio

Limit result set to items assigned one or more given formats.

Description sent to AI tools

Search and filter WordPress posts with pagination. Returns a list of posts matching the search criteria.

Update Post

hostinger-ai/posts-update · Changes the site · Safe to retry

Update an existing WordPress post by ID.

Required parameter
Type
Description

id

integer

Unique identifier for the resource

Optional parameters (16)
Parameter
Type
Description

slug

string

An alphanumeric identifier for the post unique to its type.

status

one of publish, future, draft, pending, private, in-progress, failed, wc-pending, wc-processing, wc-on-hold, wc-completed, wc-cancelled, wc-refunded, wc-failed, wc-checkout-draft

A named status for the post.

password

string

A password to protect access to the content and excerpt.

title

object

The title for the post.

content

object

The content for the post.

author

integer

The ID for the author of the post.

excerpt

object

The excerpt for the post.

featured_media

integer

The ID of the featured media for the post.

comment_status

one of open, closed

Whether or not comments are open on the post.

ping_status

one of open, closed

Whether or not the post can be pinged.

format

one of standard, aside, chat, gallery, link, image, quote, status, video, audio

The format for the post.

meta

object

Meta fields.

sticky

boolean

Whether or not the post should be treated as sticky.

template

string

The theme file to use to display the post.

categories

array of integer

The terms assigned to the post in the category taxonomy.

tags

array of integer

The terms assigned to the post in the post_tag taxonomy.

Description sent to AI tools

Update an existing WordPress post by ID. Only provided fields will be updated.

Last updated

Was this helpful?