כלי MCP
קבלת גישה מסחרית
sosoapi_get_commercial_accessקריאת נתוני המסלול והמכסות עבור חשבון החיוב של סביבת עבודה אחת, יחד עם commercial_access_mode שלה (off, shadow או enforce).
קריאה בפורמט Markdownפרופילים ואמצעי תעבורה
פרופילים: full · אמצעי תעבורה: stdio, http
בחרו core או full כדי לשלוט בכלים שהלקוח רואה; הבחירה אינה משנה את ההרשאות שלו. העלאת קבצים מקומיים דורשת stdio ואינה זמינה דרך HTTP. הגדירו SOSOAPI_OUTPUT_SCHEMAS=1 להכללת סכמות פלט בגילוי הכלים. הכלים מחזירים תוצאות מובנות עם ההגדרה הזו או בלעדיה.
הרשאות והשפעות לוואי
הערות המטא-נתונים עוזרות ללקוחות לתאר כלי. כל קריאה עדיין בודקת את אימות המשתמש, תפקידו, גישתו למשאבים והרשאות היכולות שלו.
{
"readOnlyHint": true,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false
}- /identity-api/commercial-access/status: agent:operate · synchronous_http_response
שדות קלט
שדה חובה נדרש בתוך אובייקט האב והענף הנבחר שלו. צאצא נדרש אינו הופך אב אופציונלי לנדרש. הכללים ושמות השדות שלהלן מועתקים מהחוזה.
| שדה / ענף | סוג / חובה | אילוצים |
|---|---|---|
$ | objectחובה באובייקט האב |
|
workspace_id | stringחובה באובייקט האב |
|
JSON Schema מלא
{
"type": "object",
"properties": {
"workspace_id": {
"type": "string",
"format": "uuid"
}
},
"required": [
"workspace_id"
],
"additionalProperties": false
}פלט מובנה
הסכמה מתארת את structuredContent בתוצאת כלי מוצלחת. תגובת MCP כוללת גם content ועשויה להגדיר isError כשקריאה נכשלת. בפרסום, קראו את התוצאה הסופית של הפוסט במקום לראות בבקשה שהתקבלה או בתגובת טקסט אישור. פעולת ה-API המקושרת מסבירה הרשאות וכללי ניסיון חוזר.
שדה חובה נדרש בתוך אובייקט האב והענף הנבחר שלו. צאצא נדרש אינו הופך אב אופציונלי לנדרש. הכללים ושמות השדות שלהלן מועתקים מהחוזה.
| שדה / ענף | סוג / חובה | אילוצים |
|---|---|---|
$ | objectחובה באובייקט האב |
|
billing_account_id | stringחובה באובייקט האב |
|
plan_key | stringחובה באובייקט האב |
|
plan_version | integerחובה באובייקט האב |
|
payment_state | stringחובה באובייקט האב |
|
entitlement_source | stringחובה באובייקט האב |
|
has_stripe_customer | booleanחובה באובייקט האב | — |
cycle | objectחובה באובייקט האב |
|
cycle.period_start | stringחובה באובייקט האב |
|
cycle.period_end | stringחובה באובייקט האב |
|
cycle.reset_at | stringחובה באובייקט האב |
|
quota | objectחובה באובייקט האב |
|
quota.successful_destination_publishes | objectחובה באובייקט האב |
|
quota.successful_destination_publishes.limit | integerחובה באובייקט האב |
|
quota.successful_destination_publishes.reserved | integerחובה באובייקט האב |
|
quota.successful_destination_publishes.consumed | integerחובה באובייקט האב |
|
quota.successful_destination_publishes.remaining | integerחובה באובייקט האב |
|
quota.pending_scheduled_posts | objectחובה באובייקט האב |
|
quota.pending_scheduled_posts.limit | integerחובה באובייקט האב |
|
quota.pending_scheduled_posts.active | integerחובה באובייקט האב |
|
quota.pending_scheduled_posts.remaining | integerחובה באובייקט האב |
|
quota.connected_social_accounts | objectחובה באובייקט האב |
|
quota.connected_social_accounts.limit | integerחובה באובייקט האב |
|
quota.connected_social_accounts.active | integerחובה באובייקט האב |
|
quota.connected_social_accounts.remaining | integerחובה באובייקט האב |
|
history_days | integerחובה באובייקט האב |
|
capabilities | objectחובה באובייקט האב |
|
capabilities.* | any JSON valueרשות / פריט | — |
actor_user_id | stringחובה באובייקט האב |
|
workspace_id | stringחובה באובייקט האב |
|
billing_account_kind | stringחובה באובייקט האב |
|
commercial_access_mode | stringחובה באובייקט האב |
|
JSON Schema מלא
{
"type": "object",
"properties": {
"billing_account_id": {
"type": "string",
"format": "uuid"
},
"plan_key": {
"type": "string",
"enum": [
"free",
"founding_pro"
]
},
"plan_version": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"payment_state": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"entitlement_source": {
"type": "string",
"enum": [
"default",
"stripe",
"internal_test",
"reconciliation",
"manual"
]
},
"has_stripe_customer": {
"type": "boolean"
},
"cycle": {
"type": "object",
"properties": {
"period_start": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
"period_end": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
"reset_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
}
},
"required": [
"period_start",
"period_end",
"reset_at"
],
"additionalProperties": false
},
"quota": {
"type": "object",
"properties": {
"successful_destination_publishes": {
"type": "object",
"properties": {
"limit": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"reserved": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"consumed": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"remaining": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"limit",
"reserved",
"consumed",
"remaining"
],
"additionalProperties": false
},
"pending_scheduled_posts": {
"type": "object",
"properties": {
"limit": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"active": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"remaining": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"limit",
"active",
"remaining"
],
"additionalProperties": false
},
"connected_social_accounts": {
"type": "object",
"properties": {
"limit": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"active": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"remaining": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"limit",
"active",
"remaining"
],
"additionalProperties": false
}
},
"required": [
"successful_destination_publishes",
"pending_scheduled_posts",
"connected_social_accounts"
],
"additionalProperties": false
},
"history_days": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"capabilities": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"actor_user_id": {
"type": "string",
"format": "uuid"
},
"workspace_id": {
"type": "string",
"format": "uuid"
},
"billing_account_kind": {
"type": "string",
"const": "personal"
},
"commercial_access_mode": {
"type": "string",
"enum": [
"off",
"shadow",
"enforce"
]
}
},
"required": [
"billing_account_id",
"plan_key",
"plan_version",
"payment_state",
"entitlement_source",
"has_stripe_customer",
"cycle",
"quota",
"history_days",
"capabilities",
"actor_user_id",
"workspace_id",
"billing_account_kind",
"commercial_access_mode"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}דוגמת קריאה לכלי
הדוגמאות משתמשות בערכים בדויים שנבדקו מול הסכמות. החליפו את המזהים בכאלה שאתם מורשים להשתמש בהם, את המדיה בנכסים מוכנים ואת התאריכים במועד הפרסום שאישרתם. בדקו את התאמת החשבון לפני שליחת כתיבה. העמוד הזה אינו שולח בקשות API.
{
"name": "sosoapi_get_commercial_access",
"arguments": {
"workspace_id": "11111111-1111-4111-8111-111111111111"
}
}structuredContent
{
"billing_account_id": "11111111-1111-4111-8111-111111111111",
"plan_key": "free",
"plan_version": 1,
"payment_state": "example",
"entitlement_source": "default",
"has_stripe_customer": false,
"cycle": {
"period_start": "2099-01-15T09:00:00Z",
"period_end": "2099-01-15T09:00:00Z",
"reset_at": "2099-01-15T09:00:00Z"
},
"quota": {
"successful_destination_publishes": {
"limit": 0,
"reserved": 0,
"consumed": 0,
"remaining": 0
},
"pending_scheduled_posts": {
"limit": 0,
"active": 0,
"remaining": 0
},
"connected_social_accounts": {
"limit": 0,
"active": 0,
"remaining": 0
}
},
"history_days": 1,
"capabilities": {},
"actor_user_id": "11111111-1111-4111-8111-111111111111",
"workspace_id": "11111111-1111-4111-8111-111111111111",
"billing_account_kind": "personal",
"commercial_access_mode": "off"
}