MCPOutils MCP/Idées de publication/create_post_idea
create_post_idea
Writeideas:write
Create (or idempotently upsert) a post idea generated by the agent for a location. Use the same `externalId` on retries to avoid duplicates. `origin` decides review: channel/routine ideas land pending (inbox review); os_button ideas are immediate drafts.
Paramètres
locationIdstringobligatoire
The location's id (from list_locations) this idea belongs to.
titlestringobligatoire
Short idea title.
contentstringfacultatif
Post caption / body.
externalIdstringobligatoire
Stable id from the agent — the idempotency key.
origin"channel" | "routine" | "os_button"obligatoire
Where the request came from.
type"announcement" | "offer" | "tip" | "showcase" | "story" | "event"facultatif
Idea type.
bucket"idea" | "holiday" | "calendar" | "series"facultatif
Bucket. Default "idea".
platformsstring[]facultatif
Target platforms, e.g. ["google","facebook"].
imageUrlstringfacultatif
Pre-generated image URL, if any.
imagePromptstringfacultatif
Prompt to generate an image later, if any.
seriesIdstringfacultatif
Series id, if part of a content series.
scheduledDatestringfacultatif
Suggested date (YYYY-MM-DD).
scheduledTimestringfacultatif
Suggested time (HH:mm).
generationJobIdstringfacultatif
Originating brain job/run id, for traceability.
Exemple de requête
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "create_post_idea",
"arguments": {
"locationId": "string",
"title": "string",
"externalId": "string",
"origin": "channel"
}
}
}Exemple de réponse
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "..."
}
]
}
}La forme de la réponse est indicative — le contenu réel dépend de l'outil et de vos données.