MCP टूल
Threads पर स्थान खोजें
sosoapi_search_threads_locationsस्थान अनुमतियों के साथ जगह का नाम खोजें; GPS नहीं। अस्वीकृत पहुँच केवल Menlo Park तक सीमित है।
Markdown में पढ़ेंप्रोफ़ाइल और ट्रांसपोर्ट
प्रोफ़ाइल: full · ट्रांसपोर्ट: stdio, http
क्लाइंट में दिखने वाले टूल के लिए core या full चुनें; इससे अनुमतियाँ नहीं बदलतीं। लोकल फ़ाइल अपलोड के लिए stdio चाहिए और HTTP पर उपलब्ध नहीं। खोज में आउटपुट स्कीमा के लिए SOSOAPI_OUTPUT_SCHEMAS=1 सेट करें। इस सेटिंग के साथ या बिना टूल संरचित परिणाम लौटाते हैं।
अनुमतियाँ और अन्य प्रभाव
एनोटेशन क्लाइंट को टूल का वर्णन करने में मदद करते हैं। हर कॉल फिर भी यूज़र का प्रमाणीकरण, भूमिका, संसाधन एक्सेस और क्षमता अधिकार जाँचती है।
{
"readOnlyHint": true,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": true
}- /analytics-api/threads-reads/location-search: agent:operate · सीमित आधिकारिक डेटा या स्पष्ट अनुपलब्धता; दिए गए अधिकार सार्वजनिक App Review स्वीकृति सिद्ध नहीं करते
इनपुट फ़ील्ड
Required का अर्थ पैरेंट ऑब्जेक्ट और चुनी शाखा के भीतर अनिवार्य है। अनिवार्य चाइल्ड से वैकल्पिक पैरेंट अनिवार्य नहीं होता। नीचे के नियम और फ़ील्ड नाम कॉन्ट्रैक्ट से लिए गए हैं।
| फ़ील्ड / शाखा | प्रकार / अनिवार्य | शर्तें |
|---|---|---|
$ | objectपैरेंट में अनिवार्य |
|
workspace_id | stringपैरेंट में अनिवार्य |
|
social_account_id | stringपैरेंट में अनिवार्य |
|
query | stringपैरेंट में अनिवार्य |
|
संपूर्ण JSON Schema
{
"type": "object",
"properties": {
"workspace_id": {
"type": "string",
"format": "uuid"
},
"social_account_id": {
"type": "string",
"format": "uuid"
},
"query": {
"type": "string",
"minLength": 1,
"maxLength": 200
}
},
"required": [
"workspace_id",
"social_account_id",
"query"
],
"additionalProperties": false
}संरचित आउटपुट
यह स्कीमा सफल टूल परिणाम के structuredContent का वर्णन करता है। MCP रिस्पॉन्स में content भी होता है और कॉल विफल होने पर isError सेट हो सकता है। प्रकाशन के लिए स्वीकृत अनुरोध या टेक्स्ट रिस्पॉन्स को पुष्टि मानने के बजाय पोस्ट का अंतिम परिणाम पढ़ें। लिंक किया गया API ऑपरेशन अनुमतियाँ और पुनः प्रयास के नियम समझाता है।
Required का अर्थ पैरेंट ऑब्जेक्ट और चुनी शाखा के भीतर अनिवार्य है। अनिवार्य चाइल्ड से वैकल्पिक पैरेंट अनिवार्य नहीं होता। नीचे के नियम और फ़ील्ड नाम कॉन्ट्रैक्ट से लिए गए हैं।
| फ़ील्ड / शाखा | प्रकार / अनिवार्य | शर्तें |
|---|---|---|
$ | 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": "location_search"
},
"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",
"locations",
"coverage",
"quota"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}टूल कॉल का उदाहरण
उदाहरणों में स्कीमा से जाँचे काल्पनिक मान हैं। IDs को अधिकृत IDs, मीडिया को तैयार एसेट और तारीखों को पुष्ट प्रकाशन समय से बदलें। राइट सबमिट करने से पहले खाते की पात्रता जाँचें। यह पेज API अनुरोध नहीं भेजता।
{
"name": "sosoapi_search_threads_locations",
"arguments": {
"workspace_id": "11111111-1111-4111-8111-111111111111",
"social_account_id": "22222222-2222-4222-8222-222222222222",
"query": "fictional market"
}
}structuredContent
{
"workspace_id": "11111111-1111-4111-8111-111111111111",
"social_account_id": "22222222-2222-4222-8222-222222222222",
"contract_version": "threads-reads/v1",
"operation": "location_search",
"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_location_tagging"
],
"missing_permissions": [],
"permission_state": "unknown",
"grant_evidence": "unknown",
"app_access": "unverified"
},
"data": [],
"profile": null,
"locations": [],
"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."
]
}
}