החיפוש נטען רק כשמשתמשים בו. עיינו בכל הקטגוריות שלהלן.

כלי MCP

החלפת ברירות המחדל של חשבונות הפרויקט

sosoapi_replace_project_account_defaults

החלפת חשבונות ברירת המחדל של פרויקט וההחרגות בצעד אחד. נדרשים expected_defaults_version מהקריאה האחרונה ו-idempotency_key (תפקיד editor).

קריאה בפורמט Markdown

פרופילים ואמצעי תעבורה

פרופילים: full · אמצעי תעבורה: stdio, http

בחרו core או full כדי לשלוט בכלים שהלקוח רואה; הבחירה אינה משנה את ההרשאות שלו. העלאת קבצים מקומיים דורשת stdio ואינה זמינה דרך HTTP. הגדירו SOSOAPI_OUTPUT_SCHEMAS=1 להכללת סכמות פלט בגילוי הכלים. הכלים מחזירים תוצאות מובנות עם ההגדרה הזו או בלעדיה.

הרשאות והשפעות לוואי

הערות המטא-נתונים עוזרות ללקוחות לתאר כלי. כל קריאה עדיין בודקת את אימות המשתמש, תפקידו, גישתו למשאבים והרשאות היכולות שלו.

{
  "readOnlyHint": false,
  "destructiveHint": false,
  "idempotentHint": true,
  "openWorldHint": false
}

שדות קלט

שדה חובה נדרש בתוך אובייקט האב והענף הנבחר שלו. צאצא נדרש אינו הופך אב אופציונלי לנדרש. הכללים ושמות השדות שלהלן מועתקים מהחוזה.

שדות קלט
שדה / ענףסוג / חובהאילוצים
$objectחובה באובייקט האב
  • additionalProperties: false
project_idstringחובה באובייקט האב
  • format: "uuid"
expected_defaults_versionintegerחובה באובייקט האב
  • maximum: 9007199254740991
  • exclusiveMinimum: 0
idempotency_keystringחובה באובייקט האב
  • minLength: 8
  • maxLength: 160
overridesarrayחובה באובייקט האב
  • maxItems: 200
overrides[]objectרשות / פריט
  • additionalProperties: false
overrides[].social_account_idstringחובה באובייקט האב
  • format: "uuid"
overrides[].enabledbooleanחובה באובייקט האב—
overrides[].languagestringחובה באובייקט האב
  • minLength: 1
  • maxLength: 35
overrides[].regionstringחובה באובייקט האב
  • minLength: 1
  • maxLength: 16
overrides[].timezonestringחובה באובייקט האב
  • minLength: 1
  • maxLength: 80
JSON Schema מלא
{
  "type": "object",
  "properties": {
    "project_id": {
      "type": "string",
      "format": "uuid"
    },
    "expected_defaults_version": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "idempotency_key": {
      "type": "string",
      "minLength": 8,
      "maxLength": 160
    },
    "overrides": {
      "maxItems": 200,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "social_account_id": {
            "type": "string",
            "format": "uuid"
          },
          "enabled": {
            "type": "boolean"
          },
          "language": {
            "type": "string",
            "minLength": 1,
            "maxLength": 35
          },
          "region": {
            "type": "string",
            "minLength": 1,
            "maxLength": 16
          },
          "timezone": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80
          }
        },
        "required": [
          "social_account_id",
          "enabled",
          "language",
          "region",
          "timezone"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "project_id",
    "expected_defaults_version",
    "idempotency_key",
    "overrides"
  ],
  "additionalProperties": false
}

פלט מובנה

הסכמה מתארת את structuredContent בתוצאת כלי מוצלחת. תגובת MCP כוללת גם content ועשויה להגדיר isError כשקריאה נכשלת. בפרסום, קראו את התוצאה הסופית של הפוסט במקום לראות בבקשה שהתקבלה או בתגובת טקסט אישור. פעולת ה-API המקושרת מסבירה הרשאות וכללי ניסיון חוזר.

שדה חובה נדרש בתוך אובייקט האב והענף הנבחר שלו. צאצא נדרש אינו הופך אב אופציונלי לנדרש. הכללים ושמות השדות שלהלן מועתקים מהחוזה.

פלט מובנה
שדה / ענףסוג / חובהאילוצים
$objectחובה באובייקט האב
  • additionalProperties: false
project_idstringחובה באובייקט האב
  • format: "uuid"
defaults_versionintegerחובה באובייקט האב
  • maximum: 9007199254740991
  • exclusiveMinimum: 0
accountsarrayחובה באובייקט האב—
accounts[]objectרשות / פריט
  • additionalProperties: false
accounts[].social_account_idstringחובה באובייקט האב
  • format: "uuid"
accounts[].workspace_idstringחובה באובייקט האב
  • format: "uuid"
accounts[].platformstringחובה באובייקט האב
  • enum: ["instagram","threads","facebook","youtube","x"]
accounts[].platform_user_idstring | nullחובה באובייקט האב—
accounts[].platform_user_idanyOf 1stringחובה באובייקט האב—
accounts[].platform_user_idanyOf 2nullחובה באובייקט האב—
accounts[].usernamestring | nullחובה באובייקט האב—
accounts[].usernameanyOf 1stringחובה באובייקט האב—
accounts[].usernameanyOf 2nullחובה באובייקט האב—
accounts[].facebook_page_namestring | nullחובה באובייקט האב—
accounts[].facebook_page_nameanyOf 1stringחובה באובייקט האב—
accounts[].facebook_page_nameanyOf 2nullחובה באובייקט האב—
accounts[].enabledbooleanחובה באובייקט האב—
accounts[].languagestringחובה באובייקט האב
  • minLength: 1
  • maxLength: 35
accounts[].regionstringחובה באובייקט האב
  • minLength: 1
  • maxLength: 16
accounts[].timezonestringחובה באובייקט האב
  • minLength: 1
  • maxLength: 80
accounts[].resolution_sourcestringחובה באובייקט האב
  • enum: ["project_default","workspace_default","connected_account"]
receipt_idstringחובה באובייקט האב
  • format: "uuid"
appliedbooleanחובה באובייקט האב—
dedupedbooleanחובה באובייקט האב—
JSON Schema מלא
{
  "type": "object",
  "properties": {
    "project_id": {
      "type": "string",
      "format": "uuid"
    },
    "defaults_version": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "accounts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "social_account_id": {
            "type": "string",
            "format": "uuid"
          },
          "workspace_id": {
            "type": "string",
            "format": "uuid"
          },
          "platform": {
            "type": "string",
            "enum": [
              "instagram",
              "threads",
              "facebook",
              "youtube",
              "x"
            ]
          },
          "platform_user_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "username": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "facebook_page_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "enabled": {
            "type": "boolean"
          },
          "language": {
            "type": "string",
            "minLength": 1,
            "maxLength": 35
          },
          "region": {
            "type": "string",
            "minLength": 1,
            "maxLength": 16
          },
          "timezone": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80
          },
          "resolution_source": {
            "type": "string",
            "enum": [
              "project_default",
              "workspace_default",
              "connected_account"
            ]
          }
        },
        "required": [
          "social_account_id",
          "workspace_id",
          "platform",
          "platform_user_id",
          "username",
          "facebook_page_name",
          "enabled",
          "language",
          "region",
          "timezone",
          "resolution_source"
        ],
        "additionalProperties": false
      }
    },
    "receipt_id": {
      "type": "string",
      "format": "uuid"
    },
    "applied": {
      "type": "boolean"
    },
    "deduped": {
      "type": "boolean"
    }
  },
  "required": [
    "project_id",
    "defaults_version",
    "accounts",
    "receipt_id",
    "applied",
    "deduped"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

דוגמת קריאה לכלי

הדוגמאות משתמשות בערכים בדויים שנבדקו מול הסכמות. החליפו את המזהים בכאלה שאתם מורשים להשתמש בהם, את המדיה בנכסים מוכנים ואת התאריכים במועד הפרסום שאישרתם. בדקו את התאמת החשבון לפני שליחת כתיבה. העמוד הזה אינו שולח בקשות API.

{
  "name": "sosoapi_replace_project_account_defaults",
  "arguments": {
    "project_id": "11111111-1111-4111-8111-111111111111",
    "expected_defaults_version": 1,
    "idempotency_key": "example-intent-0001",
    "overrides": []
  }
}

structuredContent

{
  "project_id": "11111111-1111-4111-8111-111111111111",
  "defaults_version": 1,
  "accounts": [],
  "receipt_id": "11111111-1111-4111-8111-111111111111",
  "applied": false,
  "deduped": false
}
התקנה או חיבור של MCP