כלי MCP
קריאת פוסטים ציבוריים ב-Threads
sosoapi_query_threads_profile_postsקריאת עמוד רשמי של פוסטים מפרופיל ציבורי עם הרשאות גילוי; מגבלות Standard ועוקבים חלות.
קריאה בפורמט Markdownפרופילים ואמצעי תעבורה
פרופילים: full · אמצעי תעבורה: stdio, http
בחרו core או full כדי לשלוט בכלים שהלקוח רואה; הבחירה אינה משנה את ההרשאות שלו. העלאת קבצים מקומיים דורשת stdio ואינה זמינה דרך HTTP. הגדירו SOSOAPI_OUTPUT_SCHEMAS=1 להכללת סכמות פלט בגילוי הכלים. הכלים מחזירים תוצאות מובנות עם ההגדרה הזו או בלעדיה.
הרשאות והשפעות לוואי
הערות המטא-נתונים עוזרות ללקוחות לתאר כלי. כל קריאה עדיין בודקת את אימות המשתמש, תפקידו, גישתו למשאבים והרשאות היכולות שלו.
{
"readOnlyHint": true,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": true
}- /analytics-api/threads-reads/profile-posts/query: agent:operate · נתונים רשמיים מוגבלים או חוסר זמינות מפורש; הרשאות שניתנו אינן מוכיחות אישור ציבורי של App Review
שדות קלט
שדה חובה נדרש בתוך אובייקט האב והענף הנבחר שלו. צאצא נדרש אינו הופך אב אופציונלי לנדרש. הכללים ושמות השדות שלהלן מועתקים מהחוזה.
| שדה / ענף | סוג / חובה | אילוצים |
|---|---|---|
$ | objectחובה באובייקט האב |
|
workspace_id | stringחובה באובייקט האב |
|
social_account_id | stringחובה באובייקט האב |
|
since | integerרשות / פריט |
|
until | integerרשות / פריט |
|
limit | integerרשות / פריט |
|
after | stringרשות / פריט |
|
username | stringחובה באובייקט האב |
|
JSON Schema מלא
{
"type": "object",
"properties": {
"workspace_id": {
"type": "string",
"format": "uuid"
},
"social_account_id": {
"type": "string",
"format": "uuid"
},
"since": {
"$ref": "#/$defs/s0"
},
"until": {
"$ref": "#/$defs/s0"
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100
},
"after": {
"type": "string",
"minLength": 1,
"maxLength": 4096
},
"username": {
"type": "string",
"pattern": "^[A-Za-z0-9._]{1,30}$"
}
},
"required": [
"workspace_id",
"social_account_id",
"username"
],
"additionalProperties": false,
"$defs": {
"s0": {
"type": "integer",
"minimum": 1688540400,
"maximum": 9007199254740991
}
}
}פלט מובנה
הסכמה מתארת את structuredContent בתוצאת כלי מוצלחת. תגובת MCP כוללת גם content ועשויה להגדיר isError כשקריאה נכשלת. בפרסום, קראו את התוצאה הסופית של הפוסט במקום לראות בבקשה שהתקבלה או בתגובת טקסט אישור. פעולת ה-API המקושרת מסבירה הרשאות וכללי ניסיון חוזר.
שדה חובה נדרש בתוך אובייקט האב והענף הנבחר שלו. צאצא נדרש אינו הופך אב אופציונלי לנדרש. הכללים ושמות השדות שלהלן מועתקים מהחוזה.
| שדה / ענף | סוג / חובה | אילוצים |
|---|---|---|
$ | objectחובה באובייקט האב |
|
contract_version | stringחובה באובייקט האב |
|
operation | stringחובה באובייקט האב |
|
source | stringחובה באובייקט האב |
|
workspace_id | stringחובה באובייקט האב |
|
social_account_id | stringחובה באובייקט האב |
|
provider_account_id | stringחובה באובייקט האב |
|
provider_app_identity | string | nullחובה באובייקט האב | — |
provider_app_identityanyOf 1 | stringחובה באובייקט האב |
|
provider_app_identityanyOf 2 | nullחובה באובייקט האב | — |
oauth_snapshot_id | string | nullחובה באובייקט האב | — |
oauth_snapshot_idanyOf 1 | stringחובה באובייקט האב |
|
oauth_snapshot_idanyOf 2 | nullחובה באובייקט האב | — |
fetched_at | stringחובה באובייקט האב |
|
status | stringחובה באובייקט האב |
|
unavailable_reason | string | nullחובה באובייקט האב | — |
unavailable_reasonanyOf 1 | stringחובה באובייקט האב |
|
unavailable_reasonanyOf 2 | nullחובה באובייקט האב | — |
access | objectחובה באובייקט האב |
|
access.required_permissions | arrayחובה באובייקט האב |
|
access.required_permissions[] | stringרשות / פריט |
|
access.missing_permissions | arrayחובה באובייקט האב |
|
access.missing_permissions[] | stringרשות / פריט |
|
access.permission_state | stringחובה באובייקט האב |
|
access.grant_evidence | stringחובה באובייקט האב |
|
access.app_access | stringחובה באובייקט האב |
|
data | arrayחובה באובייקט האב |
|
data[] | objectרשות / פריט |
|
data[].id | stringחובה באובייקט האב |
|
data[].text | string | nullחובה באובייקט האב | — |
data[].textanyOf 1 | stringחובה באובייקט האב |
|
data[].textanyOf 2 | nullחובה באובייקט האב | — |
data[].username | string | nullחובה באובייקט האב | — |
data[].usernameanyOf 1 | stringחובה באובייקט האב |
|
data[].usernameanyOf 2 | nullחובה באובייקט האב | — |
data[].permalink | string | nullחובה באובייקט האב | — |
data[].permalinkanyOf 1 | stringחובה באובייקט האב |
|
data[].permalinkanyOf 2 | nullחובה באובייקט האב | — |
data[].timestamp | string | nullחובה באובייקט האב | — |
data[].timestampanyOf 1 | stringחובה באובייקט האב |
|
data[].timestampanyOf 2 | nullחובה באובייקט האב | — |
data[].media_type | string | nullחובה באובייקט האב | — |
data[].media_typeanyOf 1 | stringחובה באובייקט האב |
|
data[].media_typeanyOf 2 | nullחובה באובייקט האב | — |
data[].is_reply | boolean | nullחובה באובייקט האב | — |
data[].is_quote_post | boolean | nullחובה באובייקט האב | — |
data[].has_replies | boolean | nullחובה באובייקט האב | — |
data[].root_post_id | string | nullרשות / פריט | — |
data[].root_post_idanyOf 1 | stringרשות / פריט |
|
data[].root_post_idanyOf 2 | nullרשות / פריט | — |
data[].replied_to_id | string | nullרשות / פריט | — |
data[].replied_to_idanyOf 1 | stringרשות / פריט |
|
data[].replied_to_idanyOf 2 | nullרשות / פריט | — |
profile | object | nullחובה באובייקט האב | — |
profileanyOf 1 | objectחובה באובייקט האב |
|
profile.usernameanyOf 1 | stringחובה באובייקט האב |
|
profile.nameanyOf 1 | string | nullחובה באובייקט האב | — |
profile.nameanyOf 1 / anyOf 1 | stringחובה באובייקט האב |
|
profile.nameanyOf 1 / anyOf 2 | nullחובה באובייקט האב | — |
profile.biographyanyOf 1 | string | nullחובה באובייקט האב | — |
profile.biographyanyOf 1 / anyOf 1 | stringחובה באובייקט האב |
|
profile.biographyanyOf 1 / anyOf 2 | nullחובה באובייקט האב | — |
profile.is_verifiedanyOf 1 | boolean | nullחובה באובייקט האב | — |
profile.follower_countanyOf 1 | integer | nullחובה באובייקט האב | — |
profile.follower_countanyOf 1 / anyOf 1 | integerחובה באובייקט האב |
|
profile.follower_countanyOf 1 / anyOf 2 | nullחובה באובייקט האב | — |
profileanyOf 2 | nullחובה באובייקט האב | — |
locations | arrayרשות / פריט |
|
locations[] | objectרשות / פריט |
|
locations[].id | stringחובה באובייקט האב |
|
locations[].name | string | nullחובה באובייקט האב | — |
locations[].nameanyOf 1 | stringחובה באובייקט האב |
|
locations[].nameanyOf 2 | nullחובה באובייקט האב | — |
locations[].address | string | nullחובה באובייקט האב | — |
locations[].addressanyOf 1 | stringחובה באובייקט האב |
|
locations[].addressanyOf 2 | nullחובה באובייקט האב | — |
locations[].city | string | nullחובה באובייקט האב | — |
locations[].cityanyOf 1 | stringחובה באובייקט האב |
|
locations[].cityanyOf 2 | nullחובה באובייקט האב | — |
locations[].country | string | nullחובה באובייקט האב | — |
locations[].countryanyOf 1 | stringחובה באובייקט האב |
|
locations[].countryanyOf 2 | nullחובה באובייקט האב | — |
locations[].postal_code | string | nullחובה באובייקט האב | — |
locations[].postal_codeanyOf 1 | stringחובה באובייקט האב |
|
locations[].postal_codeanyOf 2 | nullחובה באובייקט האב | — |
root_post_id | stringרשות / פריט |
|
target_username | stringחובה באובייקט האב |
|
coverage | objectחובה באובייקט האב |
|
coverage.complete | booleanחובה באובייקט האב |
|
coverage.next_cursor | string | nullחובה באובייקט האב | — |
coverage.next_cursoranyOf 1 | stringחובה באובייקט האב |
|
coverage.next_cursoranyOf 2 | nullחובה באובייקט האב | — |
coverage.omitted_rows | integerחובה באובייקט האב |
|
coverage.reasons | arrayחובה באובייקט האב |
|
coverage.reasons[] | stringרשות / פריט |
|
quota | arrayחובה באובייקט האב |
|
quota[] | objectרשות / פריט |
|
quota[].provider | stringחובה באובייקט האב |
|
quota[].usage | objectחובה באובייקט האב |
|
quota[].usage.call_count | numberרשות / פריט | — |
quota[].usage.total_cputime | numberרשות / פריט | — |
quota[].usage.total_time | numberרשות / פריט | — |
quota[].usage.estimated_time_to_regain_access | numberרשות / פריט | — |
quota[].sources | arrayחובה באובייקט האב |
|
quota[].sources[] | stringרשות / פריט |
|
JSON Schema מלא
{
"type": "object",
"properties": {
"contract_version": {
"type": "string",
"const": "threads-reads/v1"
},
"operation": {
"type": "string",
"const": "profile_posts"
},
"source": {
"type": "string",
"const": "official_threads_api"
},
"workspace_id": {
"type": "string",
"format": "uuid"
},
"social_account_id": {
"type": "string",
"format": "uuid"
},
"provider_account_id": {
"type": "string",
"pattern": "^\\d{2,20}$"
},
"provider_app_identity": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 100
},
{
"type": "null"
}
]
},
"oauth_snapshot_id": {
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
]
},
"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"
]
},
"unavailable_reason": {
"anyOf": [
{
"type": "string",
"enum": [
"grant_inventory_unknown",
"missing_permissions",
"issuing_app_unknown",
"credential_unavailable",
"credential_expired",
"account_unhealthy",
"provider_denied",
"provider_rate_limited",
"provider_unavailable",
"provider_response_invalid"
]
},
{
"type": "null"
}
]
},
"access": {
"type": "object",
"properties": {
"required_permissions": {
"maxItems": 4,
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,99}$"
}
},
"missing_permissions": {
"maxItems": 4,
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,99}$"
}
},
"permission_state": {
"type": "string",
"enum": [
"granted",
"missing",
"unknown"
]
},
"grant_evidence": {
"type": "string",
"enum": [
"exact",
"unknown"
]
},
"app_access": {
"type": "string",
"const": "unverified"
}
},
"required": [
"required_permissions",
"missing_permissions",
"permission_state",
"grant_evidence",
"app_access"
],
"additionalProperties": false
},
"data": {
"maxItems": 100,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^\\d{2,20}$"
},
"text": {
"anyOf": [
{
"type": "string",
"maxLength": 30000
},
{
"type": "null"
}
]
},
"username": {
"anyOf": [
{
"type": "string",
"pattern": "^[A-Za-z0-9._]{1,30}$"
},
{
"type": "null"
}
]
},
"permalink": {
"anyOf": [
{
"type": "string",
"format": "uri"
},
{
"type": "null"
}
]
},
"timestamp": {
"anyOf": [
{
"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)))$"
},
{
"type": "null"
}
]
},
"media_type": {
"anyOf": [
{
"type": "string",
"enum": [
"TEXT",
"TEXT_POST",
"IMAGE",
"VIDEO",
"CAROUSEL_ALBUM",
"AUDIO",
"REPOST_FACADE"
]
},
{
"type": "null"
}
]
},
"is_reply": {
"type": [
"boolean",
"null"
]
},
"is_quote_post": {
"type": [
"boolean",
"null"
]
},
"has_replies": {
"type": [
"boolean",
"null"
]
},
"root_post_id": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d{2,20}$"
},
{
"type": "null"
}
]
},
"replied_to_id": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d{2,20}$"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"text",
"username",
"permalink",
"timestamp",
"media_type",
"is_reply",
"is_quote_post",
"has_replies"
],
"additionalProperties": false
}
},
"profile": {
"anyOf": [
{
"type": "object",
"properties": {
"username": {
"type": "string",
"pattern": "^[A-Za-z0-9._]{1,30}$"
},
"name": {
"anyOf": [
{
"type": "string",
"maxLength": 200
},
{
"type": "null"
}
]
},
"biography": {
"anyOf": [
{
"type": "string",
"maxLength": 2000
},
{
"type": "null"
}
]
},
"is_verified": {
"type": [
"boolean",
"null"
]
},
"follower_count": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
}
},
"required": [
"username",
"name",
"biography",
"is_verified",
"follower_count"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"locations": {
"maxItems": 100,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^\\d{2,20}$"
},
"name": {
"anyOf": [
{
"type": "string",
"maxLength": 200
},
{
"type": "null"
}
]
},
"address": {
"anyOf": [
{
"type": "string",
"maxLength": 500
},
{
"type": "null"
}
]
},
"city": {
"anyOf": [
{
"type": "string",
"maxLength": 200
},
{
"type": "null"
}
]
},
"country": {
"anyOf": [
{
"type": "string",
"maxLength": 200
},
{
"type": "null"
}
]
},
"postal_code": {
"anyOf": [
{
"type": "string",
"maxLength": 100
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"name",
"address",
"city",
"country",
"postal_code"
],
"additionalProperties": false
}
},
"root_post_id": {
"type": "string",
"pattern": "^\\d{2,20}$"
},
"target_username": {
"type": "string",
"pattern": "^[A-Za-z0-9._]{1,30}$"
},
"coverage": {
"type": "object",
"properties": {
"complete": {
"type": "boolean",
"const": false
},
"next_cursor": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 4096
},
{
"type": "null"
}
]
},
"omitted_rows": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"reasons": {
"maxItems": 8,
"type": "array",
"items": {
"type": "string",
"maxLength": 400
}
}
},
"required": [
"complete",
"next_cursor",
"omitted_rows",
"reasons"
],
"additionalProperties": false
},
"quota": {
"maxItems": 1,
"type": "array",
"items": {
"type": "object",
"properties": {
"provider": {
"type": "string",
"const": "meta"
},
"usage": {
"type": "object",
"properties": {
"call_count": {
"type": "number"
},
"total_cputime": {
"type": "number"
},
"total_time": {
"type": "number"
},
"estimated_time_to_regain_access": {
"type": "number"
}
},
"additionalProperties": false
},
"sources": {
"maxItems": 2,
"type": "array",
"items": {
"type": "string",
"enum": [
"x-app-usage",
"x-business-use-case-usage"
]
}
}
},
"required": [
"provider",
"usage",
"sources"
],
"additionalProperties": false
}
}
},
"required": [
"contract_version",
"operation",
"source",
"workspace_id",
"social_account_id",
"provider_account_id",
"provider_app_identity",
"oauth_snapshot_id",
"fetched_at",
"status",
"unavailable_reason",
"access",
"data",
"profile",
"target_username",
"coverage",
"quota"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}דוגמת קריאה לכלי
הדוגמאות משתמשות בערכים בדויים שנבדקו מול הסכמות. החליפו את המזהים בכאלה שאתם מורשים להשתמש בהם, את המדיה בנכסים מוכנים ואת התאריכים במועד הפרסום שאישרתם. בדקו את התאמת החשבון לפני שליחת כתיבה. העמוד הזה אינו שולח בקשות API.
{
"name": "sosoapi_query_threads_profile_posts",
"arguments": {
"workspace_id": "11111111-1111-4111-8111-111111111111",
"social_account_id": "22222222-2222-4222-8222-222222222222",
"username": "fictional_example",
"limit": 25
}
}structuredContent
{
"workspace_id": "11111111-1111-4111-8111-111111111111",
"social_account_id": "22222222-2222-4222-8222-222222222222",
"contract_version": "threads-reads/v1",
"operation": "profile_posts",
"source": "official_threads_api",
"provider_account_id": "12345",
"provider_app_identity": null,
"oauth_snapshot_id": null,
"fetched_at": "2099-01-15T09:00:00Z",
"status": "unavailable",
"unavailable_reason": "issuing_app_unknown",
"access": {
"required_permissions": [
"threads_basic",
"threads_profile_discovery"
],
"missing_permissions": [],
"permission_state": "unknown",
"grant_evidence": "unknown",
"app_access": "unverified"
},
"data": [],
"profile": null,
"target_username": "fictional_example",
"quota": [],
"coverage": {
"complete": false,
"next_cursor": null,
"omitted_rows": 0,
"reasons": [
"Fictional documentation example: no provider request was made and no account data was read.",
"App access and any pending permission review remain unverified; this is not successful provider or public-access evidence."
]
}
}