{
  "name": "Social posting tools for an AI agent (least privilege)",
  "publisher": "APIWings",
  "source_article": "https://apiwings.com/blog/ai-agent-publish-social-media-posts",
  "license": "MIT",
  "notes": "Three tools in MCP format (name, description, inputSchema, annotations). For other tool-calling APIs, rename inputSchema to the field your API expects. There is deliberately no publish, edit or delete tool: propose_post only stores a draft in your system, and your own code (the gate) decides whether it is published after a person approves it. Annotations are hints for the client; MCP says clients must treat them as untrusted unless they come from a trusted server.",
  "tools": [
    {
      "name": "list_post_accounts",
      "description": "List the social accounts this agent may propose posts for, with their network and whether a person must approve each post.",
      "inputSchema": { "type": "object", "properties": {}, "additionalProperties": false },
      "annotations": { "title": "List postable accounts", "readOnlyHint": true, "openWorldHint": false }
    },
    {
      "name": "propose_post",
      "description": "Save a post as a draft for one account. It is NOT published: a person reviews the exact text, media and time, and the application publishes it only after approval. Returns the draft id and the problems found by the policy check, if any.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "account_id": { "type": "string", "enum": ["acc_bsky_acme", "acc_li_ana", "acc_threads_acme", "acc_tt_acme"], "description": "One of the accounts returned by list_post_accounts." },
          "text": { "type": "string", "maxLength": 3000, "description": "The full post text, exactly as it should appear." },
          "media_ids": { "type": "array", "items": { "type": "string" }, "maxItems": 10, "description": "Ids of media already uploaded by the application." },
          "media_alt": { "type": "array", "items": { "type": "string", "maxLength": 1000 }, "maxItems": 10, "description": "Alt text for each media id, in the same order." },
          "scheduled_at": { "type": "string", "format": "date-time", "description": "Optional. When to publish, in UTC (ISO 8601). Leave out to publish as soon as it is approved." },
          "reason": { "type": "string", "maxLength": 500, "description": "One sentence for the reviewer: why this post, and which source it is based on." }
        },
        "required": ["account_id", "text", "reason"],
        "additionalProperties": false
      },
      "annotations": { "title": "Propose a post for approval", "readOnlyHint": false, "destructiveHint": false, "idempotentHint": false, "openWorldHint": false }
    },
    {
      "name": "get_post_status",
      "description": "Get the status of a draft: waiting for approval, approved, blocked (with the problems), published (with the link) or failed (with the network's error).",
      "inputSchema": {
        "type": "object",
        "properties": { "draft_id": { "type": "string" } },
        "required": ["draft_id"],
        "additionalProperties": false
      },
      "annotations": { "title": "Check a draft", "readOnlyHint": true, "openWorldHint": false }
    }
  ]
}
