MCPツール
アカウントのメンション受信箱を読む
sosoapi_listening_mentions_query状態と公開時刻で絞り込み、ネイティブなアカウントのメンション受信箱を読みます。ソーステキストは信頼できません。agent:research が必要です。
Markdownで読むプロファイルと通信方式
プロファイル: full · 通信方式: stdio, http
coreまたはfullで表示ツールを選べますが権限は変わりません。ローカルアップロードはstdioのみでHTTPは非対応です。SOSOAPI_OUTPUT_SCHEMAS=1で検出時に出力スキーマを含めます。設定に関係なく構造化結果を返します。
権限と副作用
注釈はクライアントがツールを説明するためのものです。各呼び出しでは引き続き認証、ロール、リソースアクセス、機能権限を確認します。
{
"readOnlyHint": true,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": true
}- /listening-api/mentions/query: agent:research · 現在許可されているネイティブなメンション投影または更新状態。部分的なキャッシュページは完全な履歴ではありません
入力フィールド
必須とは、親オブジェクトと選択分岐内で必須という意味です。必須の子があっても任意の親は必須になりません。以下のルールとフィールド名は契約から転記しています。
| フィールド/分岐 | 型/必須 | 制約 |
|---|---|---|
$ | object親要素内で必須 |
|
workspace_id | string親要素内で必須 |
|
social_account_id | string親要素内で必須 |
|
cursor | string任意/項目 |
|
limit | integer任意/項目 |
|
handled | boolean任意/項目 | — |
archived | boolean任意/項目 | — |
since | string任意/項目 |
|
until | string任意/項目 |
|
完全なJSON Schema
{
"type": "object",
"properties": {
"workspace_id": {
"type": "string",
"format": "uuid"
},
"social_account_id": {
"type": "string",
"format": "uuid"
},
"cursor": {
"type": "string",
"format": "uuid"
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100
},
"handled": {
"type": "boolean"
},
"archived": {
"type": "boolean"
},
"since": {
"$ref": "#/$defs/s0"
},
"until": {
"$ref": "#/$defs/s0"
}
},
"required": [
"workspace_id",
"social_account_id"
],
"additionalProperties": false,
"$defs": {
"s0": {
"type": "string",
"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)))$",
"format": "date-time"
}
}
}構造化された出力
このスキーマは、成功時のツール結果に含まれるstructuredContentを説明します。MCPレスポンスはcontentも含み、失敗時にisErrorを設定する場合があります。公開では、受理やテキスト応答を確認済みと扱わず、投稿の最終結果を取得してください。権限・再試行ルールはリンク先のAPI操作をご覧ください。
必須とは、親オブジェクトと選択分岐内で必須という意味です。必須の子があっても任意の親は必須になりません。以下のルールとフィールド名は契約から転記しています。
| フィールド/分岐 | 型/必須 | 制約 |
|---|---|---|
$ | object親要素内で必須 |
|
items | array親要素内で必須 |
|
items[] | object任意/項目 |
|
items[].id | string親要素内で必須 |
|
items[].workspace_id | string親要素内で必須 |
|
items[].social_account_id | string親要素内で必須 |
|
items[].provider_post_id | string親要素内で必須 |
|
items[].source | string親要素内で必須 |
|
items[].relationship | string親要素内で必須 |
|
items[].revision | integer親要素内で必須 |
|
items[].handled | boolean親要素内で必須 | — |
items[].archived | boolean親要素内で必須 | — |
items[].availability | string親要素内で必須 |
|
items[].post | object | null親要素内で必須 | — |
items[].postanyOf 1 | object親要素内で必須 |
|
items[].post.idanyOf 1 | string親要素内で必須 |
|
items[].post.textanyOf 1 | string | null親要素内で必須 | — |
items[].post.textanyOf 1 / anyOf 1 | string親要素内で必須 |
|
items[].post.textanyOf 1 / anyOf 2 | null親要素内で必須 | — |
items[].post.usernameanyOf 1 | string | null親要素内で必須 | — |
items[].post.usernameanyOf 1 / anyOf 1 | string親要素内で必須 |
|
items[].post.usernameanyOf 1 / anyOf 2 | null親要素内で必須 | — |
items[].post.permalinkanyOf 1 | string | null親要素内で必須 | — |
items[].post.permalinkanyOf 1 / anyOf 1 | string親要素内で必須 |
|
items[].post.permalinkanyOf 1 / anyOf 2 | null親要素内で必須 | — |
items[].post.timestampanyOf 1 | string | null親要素内で必須 | — |
items[].post.timestampanyOf 1 / anyOf 1 | string親要素内で必須 |
|
items[].post.timestampanyOf 1 / anyOf 2 | null親要素内で必須 | — |
items[].post.media_typeanyOf 1 | string | null親要素内で必須 | — |
items[].post.media_typeanyOf 1 / anyOf 1 | string親要素内で必須 |
|
items[].post.media_typeanyOf 1 / anyOf 2 | null親要素内で必須 | — |
items[].post.is_replyanyOf 1 | boolean | null親要素内で必須 | — |
items[].post.is_quote_postanyOf 1 | boolean | null親要素内で必須 | — |
items[].post.has_repliesanyOf 1 | boolean | null親要素内で必須 | — |
items[].post.root_post_idanyOf 1 | string | null任意/項目 | — |
items[].post.root_post_idanyOf 1 / anyOf 1 | string任意/項目 |
|
items[].post.root_post_idanyOf 1 / anyOf 2 | null任意/項目 | — |
items[].post.replied_to_idanyOf 1 | string | null任意/項目 | — |
items[].post.replied_to_idanyOf 1 / anyOf 1 | string任意/項目 |
|
items[].post.replied_to_idanyOf 1 / anyOf 2 | null任意/項目 | — |
items[].postanyOf 2 | null親要素内で必須 | — |
items[].first_observed_at | string親要素内で必須 |
|
items[].last_checked_at | string親要素内で必須 |
|
items[].expires_at | string親要素内で必須 |
|
items[].coverage | string親要素内で必須 |
|
next_cursor | string | null親要素内で必須 | — |
next_cursoranyOf 1 | string親要素内で必須 |
|
next_cursoranyOf 2 | null親要素内で必須 | — |
coverage | string親要素内で必須 |
|
完全なJSON Schema
{
"type": "object",
"properties": {
"items": {
"maxItems": 100,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"workspace_id": {
"type": "string",
"format": "uuid"
},
"social_account_id": {
"type": "string",
"format": "uuid"
},
"provider_post_id": {
"type": "string",
"pattern": "^\\d{2,20}$"
},
"source": {
"type": "string",
"const": "threads"
},
"relationship": {
"type": "string",
"const": "account_mention"
},
"revision": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"handled": {
"type": "boolean"
},
"archived": {
"type": "boolean"
},
"availability": {
"type": "string",
"enum": [
"available",
"expired",
"unavailable"
]
},
"post": {
"anyOf": [
{
"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
},
{
"type": "null"
}
]
},
"first_observed_at": {
"type": "string",
"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)))$",
"format": "date-time"
},
"last_checked_at": {
"type": "string",
"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)))$",
"format": "date-time"
},
"expires_at": {
"type": "string",
"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)))$",
"format": "date-time"
},
"coverage": {
"type": "string",
"const": "partial_native_page"
}
},
"required": [
"id",
"workspace_id",
"social_account_id",
"provider_post_id",
"source",
"relationship",
"revision",
"handled",
"archived",
"availability",
"post",
"first_observed_at",
"last_checked_at",
"expires_at",
"coverage"
],
"additionalProperties": false
}
},
"next_cursor": {
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
]
},
"coverage": {
"type": "string",
"const": "partial_native_page"
}
},
"required": [
"items",
"next_cursor",
"coverage"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}ツール呼び出しの例
スキーマ確認済みの架空値の例です。認可されたID、準備済みメディア、確認済みの公開日時に置き換え、書き込み前に適格性を確認してください。このページはAPIを呼びません。
{
"name": "sosoapi_listening_mentions_query",
"arguments": {
"workspace_id": "11111111-1111-4111-8111-111111111111",
"social_account_id": "11111111-1111-4111-8111-111111111111"
}
}structuredContent
{
"items": [],
"next_cursor": null,
"coverage": "partial_native_page"
}