curl --request PATCH \
--url https://yoursite.com/wp-json/getmcp/v1/servers/1/prompts/2 \
--header 'Authorization: Bearer gmcp_your_api_key' \
--header 'content-type: application/json' \
--data '
{
"description": "Summarize articles with configurable length and format",
"template_content": "Please summarize the following article.\n\nStyle: {{style}}\nMax words: {{max_words}}\n\nArticle:\n{{article_text}}"
}
'
{
"id": 2,
"server_id": 1,
"name": "summarize_article",
"description": "Summarize articles with configurable length and format",
"arguments": [
{"name": "article_text", "description": "The full article text", "required": true},
{"name": "style", "description": "Summary style", "required": false},
{"name": "max_words", "description": "Maximum word count", "required": false}
],
"template_content": "Please summarize the following article.\n\nStyle: {{style}}\nMax words: {{max_words}}\n\nArticle:\n{{article_text}}",
"server_uuid": "836995ae-1cff-41ec-823e-a4f07ccca3a0",
"created_at": "2025-03-18T10:00:00Z",
"updated_at": "2025-03-18T15:00:00Z"
}
Prompts
Update Prompt
Partially update an existing prompt template.
PATCH
/
wp-json
/
getmcp
/
v1
/
servers
/
{server_id}
/
prompts
/
{id}
curl --request PATCH \
--url https://yoursite.com/wp-json/getmcp/v1/servers/1/prompts/2 \
--header 'Authorization: Bearer gmcp_your_api_key' \
--header 'content-type: application/json' \
--data '
{
"description": "Summarize articles with configurable length and format",
"template_content": "Please summarize the following article.\n\nStyle: {{style}}\nMax words: {{max_words}}\n\nArticle:\n{{article_text}}"
}
'
{
"id": 2,
"server_id": 1,
"name": "summarize_article",
"description": "Summarize articles with configurable length and format",
"arguments": [
{"name": "article_text", "description": "The full article text", "required": true},
{"name": "style", "description": "Summary style", "required": false},
{"name": "max_words", "description": "Maximum word count", "required": false}
],
"template_content": "Please summarize the following article.\n\nStyle: {{style}}\nMax words: {{max_words}}\n\nArticle:\n{{article_text}}",
"server_uuid": "836995ae-1cff-41ec-823e-a4f07ccca3a0",
"created_at": "2025-03-18T10:00:00Z",
"updated_at": "2025-03-18T15:00:00Z"
}
Path Parameters
The numeric ID of the server.
The numeric ID of the prompt to update.
Body Parameters
All fields are optional.New prompt name.
New description.
Updated arguments array.
New template content.
curl --request PATCH \
--url https://yoursite.com/wp-json/getmcp/v1/servers/1/prompts/2 \
--header 'Authorization: Bearer gmcp_your_api_key' \
--header 'content-type: application/json' \
--data '
{
"description": "Summarize articles with configurable length and format",
"template_content": "Please summarize the following article.\n\nStyle: {{style}}\nMax words: {{max_words}}\n\nArticle:\n{{article_text}}"
}
'
{
"id": 2,
"server_id": 1,
"name": "summarize_article",
"description": "Summarize articles with configurable length and format",
"arguments": [
{"name": "article_text", "description": "The full article text", "required": true},
{"name": "style", "description": "Summary style", "required": false},
{"name": "max_words", "description": "Maximum word count", "required": false}
],
"template_content": "Please summarize the following article.\n\nStyle: {{style}}\nMax words: {{max_words}}\n\nArticle:\n{{article_text}}",
"server_uuid": "836995ae-1cff-41ec-823e-a4f07ccca3a0",
"created_at": "2025-03-18T10:00:00Z",
"updated_at": "2025-03-18T15:00:00Z"
}
⌘I

