使用時先載入搜尋資料。亦可直接瀏覽下方分類。

MCP tool

讀取洞察請求狀態

sosoapi_get_provider_insight_status

按 request_id 讀取 queued、processing、completed 或 failed;completed 包括平台結果及各 metric 可用狀態。

閱讀 Markdown

Profiles 及連接方式

Profiles: core, full · Transports: stdio, http

Profile 只影響工具可見性,唔會授權。HTTP 冇本機檔案上傳。SOSOAPI_OUTPUT_SCHEMAS=1 會宣告輸出 schema;兩種模式都會回傳 structured results。

權限及改動

MCP annotations 只係發現提示,唔係存取控制保證;仍然有實際登入、角色、資源及能力檢查。

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

輸入欄位

必填表示喺所屬物件及所選分支內必須提供;子欄位必填唔代表可選父物件變成必填。以下欄位名稱及規則直接來自 contract。

輸入欄位
欄位/分支類型/必填限制
$object父物件內必填
  • additionalProperties: false
workspace_idstring父物件內必填
  • format: "uuid"
request_idstring父物件內必填
  • format: "uuid"
完整 JSON Schema
{
  "type": "object",
  "properties": {
    "workspace_id": {
      "type": "string",
      "format": "uuid"
    },
    "request_id": {
      "type": "string",
      "format": "uuid"
    }
  },
  "required": [
    "workspace_id",
    "request_id"
  ],
  "additionalProperties": false
}

結構化輸出

此 schema 描述成功工具結果嘅 structuredContent。MCP envelope 亦包括 content,失敗可能設定 isError;唔好將文字收據或接受請求當成平台終態。權限及重試規則見對應 API 操作。

必填表示喺所屬物件及所選分支內必須提供;子欄位必填唔代表可選父物件變成必填。以下欄位名稱及規則直接來自 contract。

結構化輸出
欄位/分支類型/必填限制
$object父物件內必填
  • additionalProperties: false
contract_versionstring父物件內必填
  • const: "provider-insights/v1"
request_idstring父物件內必填
  • format: "uuid"
statusstring父物件內必填
  • enum: ["queued","processing","completed","failed"]
attempt_countinteger父物件內必填
  • minimum: 0
  • maximum: 9007199254740991
resultobject可選/陣列項目
  • additionalProperties: false
result.contract_versionstring父物件內必填
  • const: "provider-insights/v1"
result.request_idstring父物件內必填
  • format: "uuid"
result.platformstring父物件內必填
  • enum: ["facebook","instagram","threads","youtube"]
result.resourceobject父物件內必填
  • additionalProperties: false
result.resource.kindstring父物件內必填
  • enum: ["account","post"]
result.resource.social_account_idstring父物件內必填
  • format: "uuid"
result.resource.provider_resource_idstring | null父物件內必填—
result.resource.provider_resource_idanyOf 1string父物件內必填—
result.resource.provider_resource_idanyOf 2null父物件內必填—
result.provider_api_versionstring父物件內必填
  • minLength: 1
  • maxLength: 100
result.fetched_atstring父物件內必填
  • 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)))$"
result.statusstring父物件內必填
  • enum: ["available","partial","unavailable"]
result.availabilityarray父物件內必填
  • minItems: 1
  • maxItems: 64
result.availability[]object可選/陣列項目
  • additionalProperties: false
result.availability[].scopestring父物件內必填
  • minLength: 1
  • maxLength: 200
result.availability[].statusstring父物件內必填
  • enum: ["available","partial","not_returned","unsupported","permission_required","threshold_not_met","no_data","failed"]
result.availability[].reasonstring可選/陣列項目
  • minLength: 1
  • maxLength: 2000
result.provider_dataany JSON value | null父物件內必填—
result.provider_dataanyOf 1any JSON value父物件內必填—
result.provider_dataanyOf 2null父物件內必填—
result.requested_date_rangeobject | null父物件內必填—
result.requested_date_rangeanyOf 1object父物件內必填
  • additionalProperties: false
result.requested_date_range.start_dateanyOf 1string父物件內必填
  • pattern: "^\\d{4}-\\d{2}-\\d{2}$"
result.requested_date_range.end_dateanyOf 1string父物件內必填
  • pattern: "^\\d{4}-\\d{2}-\\d{2}$"
result.requested_date_rangeanyOf 2null父物件內必填—
result.cacheobject父物件內必填
  • additionalProperties: false
result.cache.authoritativeboolean父物件內必填
  • const: false
result.cache.statusstring父物件內必填
  • enum: ["stored","hit","bypassed"]
result.cache.expires_atstring父物件內必填
  • 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)))$"
errorobject可選/陣列項目
  • additionalProperties: false
error.codestring父物件內必填
  • minLength: 1
  • maxLength: 100
error.reasonstring父物件內必填
  • minLength: 1
  • maxLength: 2000
error.retryableboolean父物件內必填—
完整 JSON Schema
{
  "type": "object",
  "properties": {
    "contract_version": {
      "type": "string",
      "const": "provider-insights/v1"
    },
    "request_id": {
      "type": "string",
      "format": "uuid"
    },
    "status": {
      "type": "string",
      "enum": [
        "queued",
        "processing",
        "completed",
        "failed"
      ]
    },
    "attempt_count": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "result": {
      "type": "object",
      "properties": {
        "contract_version": {
          "type": "string",
          "const": "provider-insights/v1"
        },
        "request_id": {
          "type": "string",
          "format": "uuid"
        },
        "platform": {
          "type": "string",
          "enum": [
            "facebook",
            "instagram",
            "threads",
            "youtube"
          ]
        },
        "resource": {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "enum": [
                "account",
                "post"
              ]
            },
            "social_account_id": {
              "type": "string",
              "format": "uuid"
            },
            "provider_resource_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "kind",
            "social_account_id",
            "provider_resource_id"
          ],
          "additionalProperties": false
        },
        "provider_api_version": {
          "type": "string",
          "minLength": 1,
          "maxLength": 100
        },
        "fetched_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)))$"
        },
        "status": {
          "type": "string",
          "enum": [
            "available",
            "partial",
            "unavailable"
          ]
        },
        "availability": {
          "minItems": 1,
          "maxItems": 64,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "scope": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "status": {
                "type": "string",
                "enum": [
                  "available",
                  "partial",
                  "not_returned",
                  "unsupported",
                  "permission_required",
                  "threshold_not_met",
                  "no_data",
                  "failed"
                ]
              },
              "reason": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2000
              }
            },
            "required": [
              "scope",
              "status"
            ],
            "additionalProperties": false
          }
        },
        "provider_data": {
          "anyOf": [
            {},
            {
              "type": "null"
            }
          ]
        },
        "requested_date_range": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "start_date": {
                  "type": "string",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                },
                "end_date": {
                  "type": "string",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                }
              },
              "required": [
                "start_date",
                "end_date"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "cache": {
          "type": "object",
          "properties": {
            "authoritative": {
              "type": "boolean",
              "const": false
            },
            "status": {
              "type": "string",
              "enum": [
                "stored",
                "hit",
                "bypassed"
              ]
            },
            "expires_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": [
            "authoritative",
            "status",
            "expires_at"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "contract_version",
        "request_id",
        "platform",
        "resource",
        "provider_api_version",
        "fetched_at",
        "status",
        "availability",
        "provider_data",
        "requested_date_range",
        "cache"
      ],
      "additionalProperties": false
    },
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "minLength": 1,
          "maxLength": 100
        },
        "reason": {
          "type": "string",
          "minLength": 1,
          "maxLength": 2000
        },
        "retryable": {
          "type": "boolean"
        }
      },
      "required": [
        "code",
        "reason",
        "retryable"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "contract_version",
    "request_id",
    "status",
    "attempt_count"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

工具呼叫範例

以下虛構值已按 contract 驗證,唔係真實帳戶 ID、憑證或發佈紀錄。請用已授權範圍回傳嘅 ID、已準備好嘅素材及已審核排程取代,寫入前核對平台資格。此頁唔會呼叫 API。

{
  "name": "sosoapi_get_provider_insight_status",
  "arguments": {
    "workspace_id": "11111111-1111-4111-8111-111111111111",
    "request_id": "11111111-1111-4111-8111-111111111111"
  }
}

structuredContent

{
  "contract_version": "provider-insights/v1",
  "request_id": "11111111-1111-4111-8111-111111111111",
  "status": "queued",
  "attempt_count": 0
}
安裝或連接 MCP