MCP टूल
कम्युनिटी कमेंट की स्थिति पाएँ
sosoapi_get_comment_action_statusसीधी कमेंट कार्रवाई की संवेदनशील जानकारी हटाई हुई अंतिम रसीद पढ़ें।
Markdown में पढ़ेंप्रोफ़ाइल और ट्रांसपोर्ट
प्रोफ़ाइल: core, full · ट्रांसपोर्ट: stdio, http
क्लाइंट में दिखने वाले टूल के लिए core या full चुनें; इससे अनुमतियाँ नहीं बदलतीं। लोकल फ़ाइल अपलोड के लिए stdio चाहिए और HTTP पर उपलब्ध नहीं। खोज में आउटपुट स्कीमा के लिए SOSOAPI_OUTPUT_SCHEMAS=1 सेट करें। इस सेटिंग के साथ या बिना टूल संरचित परिणाम लौटाते हैं।
अनुमतियाँ और अन्य प्रभाव
एनोटेशन क्लाइंट को टूल का वर्णन करने में मदद करते हैं। हर कॉल फिर भी यूज़र का प्रमाणीकरण, भूमिका, संसाधन एक्सेस और क्षमता अधिकार जाँचती है।
{
"readOnlyHint": true,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": true
}- /community-engagement-api/comments/status: agent:engage · प्रोवाइडर की अंतिम रसीद
इनपुट फ़ील्ड
Required का अर्थ पैरेंट ऑब्जेक्ट और चुनी शाखा के भीतर अनिवार्य है। अनिवार्य चाइल्ड से वैकल्पिक पैरेंट अनिवार्य नहीं होता। नीचे के नियम और फ़ील्ड नाम कॉन्ट्रैक्ट से लिए गए हैं।
| फ़ील्ड / शाखा | प्रकार / अनिवार्य | शर्तें |
|---|---|---|
$ | objectपैरेंट में अनिवार्य |
|
workspace_id | stringपैरेंट में अनिवार्य |
|
action_id | stringपैरेंट में अनिवार्य |
|
संपूर्ण JSON Schema
{
"type": "object",
"properties": {
"workspace_id": {
"type": "string",
"format": "uuid"
},
"action_id": {
"type": "string",
"format": "uuid"
}
},
"required": [
"workspace_id",
"action_id"
],
"additionalProperties": false
}संरचित आउटपुट
यह स्कीमा सफल टूल परिणाम के structuredContent का वर्णन करता है। MCP रिस्पॉन्स में content भी होता है और कॉल विफल होने पर isError सेट हो सकता है। प्रकाशन के लिए स्वीकृत अनुरोध या टेक्स्ट रिस्पॉन्स को पुष्टि मानने के बजाय पोस्ट का अंतिम परिणाम पढ़ें। लिंक किया गया API ऑपरेशन अनुमतियाँ और पुनः प्रयास के नियम समझाता है।
Required का अर्थ पैरेंट ऑब्जेक्ट और चुनी शाखा के भीतर अनिवार्य है। अनिवार्य चाइल्ड से वैकल्पिक पैरेंट अनिवार्य नहीं होता। नीचे के नियम और फ़ील्ड नाम कॉन्ट्रैक्ट से लिए गए हैं।
| फ़ील्ड / शाखा | प्रकार / अनिवार्य | शर्तें |
|---|---|---|
$ | objectपैरेंट में अनिवार्य |
|
contract_version | stringपैरेंट में अनिवार्य |
|
action | objectपैरेंट में अनिवार्य |
|
action.action_id | stringपैरेंट में अनिवार्य |
|
action.workspace_id | stringपैरेंट में अनिवार्य |
|
action.social_account_id | stringपैरेंट में अनिवार्य |
|
action.target | objectपैरेंट में अनिवार्य | — |
action.targetoneOf 1 | objectपैरेंट में अनिवार्य |
|
action.target.kindoneOf 1 | stringपैरेंट में अनिवार्य |
|
action.target.social_post_idoneOf 1 | stringपैरेंट में अनिवार्य |
|
action.targetoneOf 2 | objectपैरेंट में अनिवार्य |
|
action.target.kindoneOf 2 | stringपैरेंट में अनिवार्य |
|
action.target.social_post_idoneOf 2 | stringपैरेंट में अनिवार्य |
|
action.target.social_comment_idoneOf 2 | stringपैरेंट में अनिवार्य |
|
action.content_sha256 | stringपैरेंट में अनिवार्य |
|
action.idempotency_key | stringपैरेंट में अनिवार्य |
|
action.status | stringपैरेंट में अनिवार्य |
|
action.attempt_count | integerपैरेंट में अनिवार्य |
|
action.created_at | stringपैरेंट में अनिवार्य |
|
action.updated_at | stringपैरेंट में अनिवार्य |
|
receipt | object | nullपैरेंट में अनिवार्य | — |
receiptanyOf 1 | objectपैरेंट में अनिवार्य |
|
receipt.action_idanyOf 1 | stringपैरेंट में अनिवार्य |
|
receipt.statusanyOf 1 | stringपैरेंट में अनिवार्य |
|
receipt.provider_terminalanyOf 1 | booleanपैरेंट में अनिवार्य | — |
receipt.provider_comment_idanyOf 1 | string | nullपैरेंट में अनिवार्य | — |
receipt.provider_comment_idanyOf 1 / anyOf 1 | stringपैरेंट में अनिवार्य |
|
receipt.provider_comment_idanyOf 1 / anyOf 2 | nullपैरेंट में अनिवार्य | — |
receipt.terminal_atanyOf 1 | stringपैरेंट में अनिवार्य |
|
receipt.attention_reasonanyOf 1 | string | nullपैरेंट में अनिवार्य | — |
receipt.attention_reasonanyOf 1 / anyOf 1 | stringपैरेंट में अनिवार्य |
|
receipt.attention_reasonanyOf 1 / anyOf 2 | nullपैरेंट में अनिवार्य | — |
receiptanyOf 2 | nullपैरेंट में अनिवार्य | — |
संपूर्ण JSON Schema
{
"type": "object",
"properties": {
"contract_version": {
"type": "string",
"const": "community-engagement/v1"
},
"action": {
"type": "object",
"properties": {
"action_id": {
"type": "string",
"format": "uuid"
},
"workspace_id": {
"type": "string",
"format": "uuid"
},
"social_account_id": {
"type": "string",
"format": "uuid"
},
"target": {
"oneOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "post"
},
"social_post_id": {
"type": "string",
"format": "uuid"
}
},
"required": [
"kind",
"social_post_id"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "comment"
},
"social_post_id": {
"type": "string",
"format": "uuid"
},
"social_comment_id": {
"type": "string",
"format": "uuid"
}
},
"required": [
"kind",
"social_post_id",
"social_comment_id"
],
"additionalProperties": false
}
]
},
"content_sha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"idempotency_key": {
"type": "string",
"format": "uuid"
},
"status": {
"type": "string",
"enum": [
"queued",
"executing",
"succeeded",
"attention",
"failed"
]
},
"attempt_count": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"created_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)))$"
},
"updated_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": [
"action_id",
"workspace_id",
"social_account_id",
"target",
"content_sha256",
"idempotency_key",
"status",
"attempt_count",
"created_at",
"updated_at"
],
"additionalProperties": false
},
"receipt": {
"anyOf": [
{
"type": "object",
"properties": {
"action_id": {
"type": "string",
"format": "uuid"
},
"status": {
"type": "string",
"enum": [
"succeeded",
"attention",
"failed"
]
},
"provider_terminal": {
"type": "boolean"
},
"provider_comment_id": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 512
},
{
"type": "null"
}
]
},
"terminal_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)))$"
},
"attention_reason": {
"anyOf": [
{
"type": "string",
"maxLength": 500
},
{
"type": "null"
}
]
}
},
"required": [
"action_id",
"status",
"provider_terminal",
"provider_comment_id",
"terminal_at",
"attention_reason"
],
"additionalProperties": false
},
{
"type": "null"
}
]
}
},
"required": [
"contract_version",
"action",
"receipt"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}टूल कॉल का उदाहरण
उदाहरणों में स्कीमा से जाँचे काल्पनिक मान हैं। IDs को अधिकृत IDs, मीडिया को तैयार एसेट और तारीखों को पुष्ट प्रकाशन समय से बदलें। राइट सबमिट करने से पहले खाते की पात्रता जाँचें। यह पेज API अनुरोध नहीं भेजता।
{
"name": "sosoapi_get_comment_action_status",
"arguments": {
"workspace_id": "11111111-1111-4111-8111-111111111111",
"action_id": "11111111-1111-4111-8111-111111111111"
}
}structuredContent
{
"contract_version": "community-engagement/v1",
"action": {
"action_id": "11111111-1111-4111-8111-111111111111",
"workspace_id": "11111111-1111-4111-8111-111111111111",
"social_account_id": "11111111-1111-4111-8111-111111111111",
"target": {
"kind": "post",
"social_post_id": "11111111-1111-4111-8111-111111111111"
},
"content_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"idempotency_key": "11111111-1111-4111-8111-111111111111",
"status": "queued",
"attempt_count": 0,
"created_at": "2099-01-15T09:00:00Z",
"updated_at": "2099-01-15T09:00:00Z"
},
"receipt": null
}