MCPツール
公開パフォーマンスを読み取る
sosoapi_read_public_performanceワークスペースに接続されたアカウントの、X の非公式な公開カウンターを読み取ります。欠けているカウンターは取得不可のままです。有料の X API や認証情報は使用しません。
Markdownで読むプロファイルと通信方式
プロファイル: full · 通信方式: stdio, http
coreまたはfullで表示ツールを選べますが権限は変わりません。ローカルアップロードはstdioのみでHTTPは非対応です。SOSOAPI_OUTPUT_SCHEMAS=1で検出時に出力スキーマを含めます。設定に関係なく構造化結果を返します。
権限と副作用
注釈はクライアントがツールを説明するためのものです。各呼び出しでは引き続き認証、ロール、リソースアクセス、機能権限を確認します。
{
"readOnlyHint": true,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": true
}- /analytics-api/public-performance/read: agent:operate · 非公式であることを明示した公開カウンター、または取得不可の証拠。公式 Insights ではありません。
入力フィールド
必須とは、親オブジェクトと選択分岐内で必須という意味です。必須の子があっても任意の親は必須になりません。以下のルールとフィールド名は契約から転記しています。
| フィールド/分岐 | 型/必須 | 制約 |
|---|---|---|
$ | object親要素内で必須 |
|
workspace_id | string親要素内で必須 |
|
social_account_id | string親要素内で必須 |
|
cursor | string任意/項目 |
|
refresh | boolean任意/項目 | — |
完全なJSON Schema
{
"type": "object",
"properties": {
"workspace_id": {
"type": "string",
"format": "uuid"
},
"social_account_id": {
"type": "string",
"format": "uuid"
},
"cursor": {
"type": "string",
"minLength": 1,
"maxLength": 2048
},
"refresh": {
"type": "boolean"
}
},
"required": [
"workspace_id",
"social_account_id"
],
"additionalProperties": false
}構造化された出力
このスキーマは、成功時のツール結果に含まれるstructuredContentを説明します。MCPレスポンスはcontentも含み、失敗時にisErrorを設定する場合があります。公開では、受理やテキスト応答を確認済みと扱わず、投稿の最終結果を取得してください。権限・再試行ルールはリンク先のAPI操作をご覧ください。
必須とは、親オブジェクトと選択分岐内で必須という意味です。必須の子があっても任意の親は必須になりません。以下のルールとフィールド名は契約から転記しています。
| フィールド/分岐 | 型/必須 | 制約 |
|---|---|---|
$ | object親要素内で必須 |
|
contract_version | string親要素内で必須 |
|
source | string親要素内で必須 |
|
source_kind | string親要素内で必須 |
|
platform | string親要素内で必須 |
|
workspace_id | string親要素内で必須 |
|
social_account_id | string親要素内で必須 |
|
provider_account_id | string親要素内で必須 |
|
fetched_at | string親要素内で必須 |
|
upstream_updated_at | null親要素内で必須 | — |
expires_at | string親要素内で必須 |
|
cache_status | string親要素内で必須 |
|
status | string親要素内で必須 |
|
profile | object | null親要素内で必須 | — |
profileanyOf 1 | object親要素内で必須 |
|
profile.nameanyOf 1 | string親要素内で必須 |
|
profile.handleanyOf 1 | string親要素内で必須 |
|
profile.followersanyOf 1 | integer | null親要素内で必須 | — |
profile.followersanyOf 1 / anyOf 1 | integer親要素内で必須 |
|
profile.followersanyOf 1 / anyOf 2 | null親要素内で必須 | — |
profileanyOf 2 | null親要素内で必須 | — |
posts | array親要素内で必須 |
|
posts[] | object任意/項目 |
|
posts[].id | string親要素内で必須 |
|
posts[].url | string親要素内で必須 |
|
posts[].text | string親要素内で必須 |
|
posts[].published_at | string | null親要素内で必須 | — |
posts[].published_atanyOf 1 | string親要素内で必須 |
|
posts[].published_atanyOf 2 | null親要素内で必須 | — |
posts[].kind | string親要素内で必須 |
|
posts[].media_kind | string親要素内で必須 |
|
posts[].metrics | object親要素内で必須 |
|
posts[].metrics.views | integer | null親要素内で必須 | — |
posts[].metrics.viewsanyOf 1 | integer親要素内で必須 |
|
posts[].metrics.viewsanyOf 2 | null親要素内で必須 | — |
posts[].metrics.likes | integer | null親要素内で必須 | — |
posts[].metrics.likesanyOf 1 | integer親要素内で必須 |
|
posts[].metrics.likesanyOf 2 | null親要素内で必須 | — |
posts[].metrics.replies | integer | null親要素内で必須 | — |
posts[].metrics.repliesanyOf 1 | integer親要素内で必須 |
|
posts[].metrics.repliesanyOf 2 | null親要素内で必須 | — |
posts[].metrics.reposts | integer | null親要素内で必須 | — |
posts[].metrics.repostsanyOf 1 | integer親要素内で必須 |
|
posts[].metrics.repostsanyOf 2 | null親要素内で必須 | — |
posts[].metrics.quotes | integer | null親要素内で必須 | — |
posts[].metrics.quotesanyOf 1 | integer親要素内で必須 |
|
posts[].metrics.quotesanyOf 2 | null親要素内で必須 | — |
posts[].metrics.bookmarks | integer | null親要素内で必須 | — |
posts[].metrics.bookmarksanyOf 1 | integer親要素内で必須 |
|
posts[].metrics.bookmarksanyOf 2 | null親要素内で必須 | — |
coverage | object親要素内で必須 |
|
coverage.complete | boolean親要素内で必須 | — |
coverage.next_cursor | string | null親要素内で必須 | — |
coverage.next_cursoranyOf 1 | string親要素内で必須 |
|
coverage.next_cursoranyOf 2 | null親要素内で必須 | — |
coverage.views_available_posts | integer親要素内で必須 |
|
coverage.omitted_rows | integer親要素内で必須 |
|
coverage.reasons | array親要素内で必須 |
|
coverage.reasons[] | string任意/項目 |
|
完全なJSON Schema
{
"type": "object",
"properties": {
"contract_version": {
"type": "string",
"const": "public-performance/v1"
},
"source": {
"type": "string",
"const": "fxtwitter"
},
"source_kind": {
"type": "string",
"const": "unofficial_public"
},
"platform": {
"type": "string",
"const": "x"
},
"workspace_id": {
"type": "string",
"format": "uuid"
},
"social_account_id": {
"type": "string",
"format": "uuid"
},
"provider_account_id": {
"type": "string",
"pattern": "^\\d{2,20}$"
},
"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)))$"
},
"upstream_updated_at": {
"type": "null"
},
"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)))$"
},
"cache_status": {
"type": "string",
"enum": [
"hit",
"stored",
"bypassed"
]
},
"status": {
"type": "string",
"enum": [
"available",
"partial",
"unavailable"
]
},
"profile": {
"anyOf": [
{
"type": "object",
"properties": {
"name": {
"type": "string",
"maxLength": 200
},
"handle": {
"type": "string",
"maxLength": 100
},
"followers": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
}
},
"required": [
"name",
"handle",
"followers"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"posts": {
"maxItems": 100,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^\\d{2,20}$"
},
"url": {
"type": "string",
"format": "uri"
},
"text": {
"type": "string",
"maxLength": 30000
},
"published_at": {
"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"
}
]
},
"kind": {
"type": "string",
"enum": [
"post",
"reply"
]
},
"media_kind": {
"type": "string",
"enum": [
"text",
"image",
"video"
]
},
"metrics": {
"type": "object",
"properties": {
"views": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"likes": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"replies": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"reposts": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"quotes": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"bookmarks": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
}
},
"required": [
"views",
"likes",
"replies",
"reposts",
"quotes",
"bookmarks"
],
"additionalProperties": false
}
},
"required": [
"id",
"url",
"text",
"published_at",
"kind",
"media_kind",
"metrics"
],
"additionalProperties": false
}
},
"coverage": {
"type": "object",
"properties": {
"complete": {
"type": "boolean"
},
"next_cursor": {
"anyOf": [
{
"type": "string",
"maxLength": 2048
},
{
"type": "null"
}
]
},
"views_available_posts": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"omitted_rows": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"reasons": {
"maxItems": 8,
"type": "array",
"items": {
"type": "string",
"maxLength": 300
}
}
},
"required": [
"complete",
"next_cursor",
"views_available_posts",
"omitted_rows",
"reasons"
],
"additionalProperties": false
}
},
"required": [
"contract_version",
"source",
"source_kind",
"platform",
"workspace_id",
"social_account_id",
"provider_account_id",
"fetched_at",
"upstream_updated_at",
"expires_at",
"cache_status",
"status",
"profile",
"posts",
"coverage"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}ツール呼び出しの例
スキーマ確認済みの架空値の例です。認可されたID、準備済みメディア、確認済みの公開日時に置き換え、書き込み前に適格性を確認してください。このページはAPIを呼びません。
{
"name": "sosoapi_read_public_performance",
"arguments": {
"workspace_id": "11111111-1111-4111-8111-111111111111",
"social_account_id": "22222222-2222-4222-8222-222222222222"
}
}structuredContent
{
"workspace_id": "11111111-1111-4111-8111-111111111111",
"social_account_id": "22222222-2222-4222-8222-222222222222",
"contract_version": "public-performance/v1",
"source": "fxtwitter",
"source_kind": "unofficial_public",
"platform": "x",
"provider_account_id": "12345",
"fetched_at": "2099-01-15T09:00:00Z",
"upstream_updated_at": null,
"expires_at": "2099-01-15T09:05:00Z",
"cache_status": "stored",
"status": "unavailable",
"profile": null,
"posts": [],
"coverage": {
"complete": false,
"next_cursor": null,
"views_available_posts": 0,
"omitted_rows": 0,
"reasons": [
"Fictional public source unavailable; no account data was read."
]
}
}