Ferramenta MCP
Arquivar uma conversa de pesquisa
sosoapi_research_conversations_archiveArquivar o texto privado da conversa e cancelar a análise ativa com expected_revision; cópias salvas do briefing permanecem separadas. Exige agent:research.
Ler como MarkdownPerfis e transportes
Perfis: full · Transportes: stdio, http
Escolha core ou full para controlar quais ferramentas seu cliente vê; isso não altera suas permissões. O envio de arquivos locais exige stdio e não está disponível por HTTP. Defina SOSOAPI_OUTPUT_SCHEMAS=1 para incluir schemas de saída na descoberta. As ferramentas retornam resultados estruturados com ou sem essa configuração.
Permissões e efeitos colaterais
As anotações ajudam os clientes a descrever uma ferramenta. Cada chamada ainda verifica autenticação, função, acesso a recursos e concessões de capacidades do usuário.
{
"readOnlyHint": false,
"destructiveHint": true,
"idempotentHint": true,
"openWorldHint": true
}- /research-api/conversations/archive: agent:research · arquivamento confirmado e cancelamento de trabalho pendente
Campos de entrada
Obrigatório significa obrigatório dentro do objeto pai e da ramificação selecionada. Um filho obrigatório não torna obrigatório um pai opcional. As regras e nomes de campos abaixo são copiados do contrato.
| Campo / ramificação | Tipo / obrigatório | Restrições |
|---|---|---|
$ | objectObrigatório no objeto pai |
|
workspace_id | stringObrigatório no objeto pai |
|
mutation_id | stringObrigatório no objeto pai |
|
conversation_id | stringObrigatório no objeto pai |
|
expected_revision | integerObrigatório no objeto pai |
|
JSON Schema completo
{
"type": "object",
"properties": {
"workspace_id": {
"type": "string",
"format": "uuid"
},
"mutation_id": {
"type": "string",
"format": "uuid"
},
"conversation_id": {
"type": "string",
"format": "uuid"
},
"expected_revision": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"workspace_id",
"mutation_id",
"conversation_id",
"expected_revision"
],
"additionalProperties": false
}Saída estruturada
Este schema descreve structuredContent em um resultado de ferramenta bem-sucedido. A resposta MCP também inclui content e pode definir isError quando uma chamada falha. Para publicações, consulte o resultado final do post em vez de tratar uma requisição aceita ou resposta de texto como confirmação. A operação de API vinculada explica as permissões e regras de repetição.
Obrigatório significa obrigatório dentro do objeto pai e da ramificação selecionada. Um filho obrigatório não torna obrigatório um pai opcional. As regras e nomes de campos abaixo são copiados do contrato.
| Campo / ramificação | Tipo / obrigatório | Restrições |
|---|---|---|
$ | objectObrigatório no objeto pai |
|
conversation | objectObrigatório no objeto pai |
|
conversation.id | stringObrigatório no objeto pai |
|
conversation.workspace_id | stringObrigatório no objeto pai |
|
conversation.revision | integerObrigatório no objeto pai |
|
conversation.title | string | nullObrigatório no objeto pai | — |
conversation.titleanyOf 1 | stringObrigatório no objeto pai |
|
conversation.titleanyOf 2 | nullObrigatório no objeto pai | — |
conversation.context | objectObrigatório no objeto pai |
|
conversation.context.project_id | stringObrigatório no objeto pai |
|
conversation.context.project_revision | integerObrigatório no objeto pai |
|
conversation.context.corpus_snapshot_id | stringObrigatório no objeto pai |
|
conversation.context.evidence | arrayObrigatório no objeto pai |
|
conversation.context.evidence[] | objectOpcional / item |
|
conversation.context.evidence[].evidence_id | stringObrigatório no objeto pai |
|
conversation.context.evidence[].revision | integerObrigatório no objeto pai |
|
conversation.language | stringObrigatório no objeto pai |
|
conversation.archived | booleanObrigatório no objeto pai | — |
conversation.availability | stringObrigatório no objeto pai |
|
conversation.created_at | stringObrigatório no objeto pai |
|
conversation.expires_at | stringObrigatório no objeto pai |
|
messages | arrayObrigatório no objeto pai |
|
messages[] | objectOpcional / item |
|
messages[].id | stringObrigatório no objeto pai |
|
messages[].run_id | stringObrigatório no objeto pai |
|
messages[].role | stringObrigatório no objeto pai |
|
messages[].question | string | nullObrigatório no objeto pai | — |
messages[].questionanyOf 1 | stringObrigatório no objeto pai |
|
messages[].questionanyOf 2 | nullObrigatório no objeto pai | — |
messages[].answer | object | nullObrigatório no objeto pai | — |
messages[].answeranyOf 1 | objectObrigatório no objeto pai |
|
messages[].answer.answeranyOf 1 | objectObrigatório no objeto pai |
|
messages[].answer.answer.statementanyOf 1 | stringObrigatório no objeto pai |
|
messages[].answer.answer.basisanyOf 1 | stringObrigatório no objeto pai |
|
messages[].answer.answer.evidenceanyOf 1 | arrayObrigatório no objeto pai |
|
messages[].answer.answer.evidence[]anyOf 1 | objectOpcional / item |
|
messages[].answer.answer.evidence[].evidence_idanyOf 1 | stringObrigatório no objeto pai |
|
messages[].answer.answer.evidence[].revisionanyOf 1 | integerObrigatório no objeto pai |
|
messages[].answer.answer.uncertaintyanyOf 1 | stringObrigatório no objeto pai |
|
messages[].answer.findingsanyOf 1 | arrayObrigatório no objeto pai |
|
messages[].answer.findings[]anyOf 1 | objectOpcional / item |
|
messages[].answer.findings[].statementanyOf 1 | stringObrigatório no objeto pai |
|
messages[].answer.findings[].basisanyOf 1 | stringObrigatório no objeto pai |
|
messages[].answer.findings[].evidenceanyOf 1 | arrayObrigatório no objeto pai |
|
messages[].answer.findings[].evidence[]anyOf 1 | objectOpcional / item |
|
messages[].answer.findings[].evidence[].evidence_idanyOf 1 | stringObrigatório no objeto pai |
|
messages[].answer.findings[].evidence[].revisionanyOf 1 | integerObrigatório no objeto pai |
|
messages[].answer.findings[].uncertaintyanyOf 1 | stringObrigatório no objeto pai |
|
messages[].answer.sentimentanyOf 1 | arrayObrigatório no objeto pai |
|
messages[].answer.sentiment[]anyOf 1 | objectOpcional / item |
|
messages[].answer.sentiment[].evidence_idanyOf 1 | stringObrigatório no objeto pai |
|
messages[].answer.sentiment[].revisionanyOf 1 | integerObrigatório no objeto pai |
|
messages[].answer.sentiment[].labelanyOf 1 | stringObrigatório no objeto pai |
|
messages[].answer.sentiment[].uncertaintyanyOf 1 | stringObrigatório no objeto pai |
|
messages[].answer.query_suggestionsanyOf 1 | arrayObrigatório no objeto pai |
|
messages[].answer.query_suggestions[]anyOf 1 | objectOpcional / item |
|
messages[].answer.query_suggestions[].queryanyOf 1 | stringObrigatório no objeto pai |
|
messages[].answer.query_suggestions[].excluded_termsanyOf 1 | arrayObrigatório no objeto pai |
|
messages[].answer.query_suggestions[].excluded_terms[]anyOf 1 | stringOpcional / item |
|
messages[].answer.query_suggestions[].evidenceanyOf 1 | arrayObrigatório no objeto pai |
|
messages[].answer.query_suggestions[].evidence[]anyOf 1 | objectOpcional / item |
|
messages[].answer.query_suggestions[].evidence[].evidence_idanyOf 1 | stringObrigatório no objeto pai |
|
messages[].answer.query_suggestions[].evidence[].revisionanyOf 1 | integerObrigatório no objeto pai |
|
messages[].answer.query_suggestions[].rationaleanyOf 1 | stringObrigatório no objeto pai |
|
messages[].answer.limitationsanyOf 1 | arrayObrigatório no objeto pai |
|
messages[].answer.limitations[]anyOf 1 | stringOpcional / item |
|
messages[].answer.quantitative_claimsanyOf 1 | booleanObrigatório no objeto pai |
|
messages[].answer.method_versionanyOf 1 | stringObrigatório no objeto pai |
|
messages[].answeranyOf 2 | nullObrigatório no objeto pai | — |
messages[].created_at | stringObrigatório no objeto pai |
|
messages[].expires_at | stringObrigatório no objeto pai |
|
runs | arrayObrigatório no objeto pai |
|
runs[] | objectOpcional / item |
|
runs[].id | stringObrigatório no objeto pai |
|
runs[].workspace_id | stringObrigatório no objeto pai |
|
runs[].conversation_id | stringObrigatório no objeto pai |
|
runs[].conversation_revision | integerObrigatório no objeto pai |
|
runs[].generation | integerObrigatório no objeto pai |
|
runs[].request_kind | stringObrigatório no objeto pai |
|
runs[].status | stringObrigatório no objeto pai |
|
runs[].failure_code | string | nullObrigatório no objeto pai | — |
runs[].failure_codeanyOf 1 | stringObrigatório no objeto pai |
|
runs[].failure_codeanyOf 2 | nullObrigatório no objeto pai | — |
runs[].created_at | stringObrigatório no objeto pai |
|
runs[].expires_at | stringObrigatório no objeto pai |
|
runs[].processor | stringObrigatório no objeto pai |
|
runs[].model_id | string | nullObrigatório no objeto pai | — |
runs[].model_idanyOf 1 | stringObrigatório no objeto pai |
|
runs[].model_idanyOf 2 | nullObrigatório no objeto pai | — |
runs[].model_version | string | nullObrigatório no objeto pai | — |
runs[].model_versionanyOf 1 | stringObrigatório no objeto pai |
|
runs[].model_versionanyOf 2 | nullObrigatório no objeto pai | — |
availability | objectObrigatório no objeto pai |
|
availability.configured | booleanObrigatório no objeto pai | — |
availability.reason | string | nullObrigatório no objeto pai | — |
availability.reasonanyOf 1 | stringObrigatório no objeto pai |
|
availability.reasonanyOf 2 | nullObrigatório no objeto pai | — |
availability.processor | stringObrigatório no objeto pai |
|
availability.retention_hours | numberObrigatório no objeto pai |
|
JSON Schema completo
{
"type": "object",
"properties": {
"conversation": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"workspace_id": {
"type": "string",
"format": "uuid"
},
"revision": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"title": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 200
},
{
"type": "null"
}
]
},
"context": {
"type": "object",
"properties": {
"project_id": {
"type": "string",
"format": "uuid"
},
"project_revision": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"corpus_snapshot_id": {
"type": "string",
"format": "uuid"
},
"evidence": {
"minItems": 1,
"maxItems": 20,
"type": "array",
"items": {
"type": "object",
"properties": {
"evidence_id": {
"type": "string",
"format": "uuid"
},
"revision": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"evidence_id",
"revision"
],
"additionalProperties": false
}
}
},
"required": [
"project_id",
"project_revision",
"corpus_snapshot_id",
"evidence"
],
"additionalProperties": false
},
"language": {
"type": "string",
"minLength": 1,
"maxLength": 35
},
"archived": {
"type": "boolean"
},
"availability": {
"type": "string",
"enum": [
"available",
"expired",
"source_unavailable",
"access_changed",
"archived"
]
},
"created_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"
}
},
"required": [
"id",
"workspace_id",
"revision",
"title",
"context",
"language",
"archived",
"availability",
"created_at",
"expires_at"
],
"additionalProperties": false
},
"messages": {
"maxItems": 40,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"run_id": {
"type": "string",
"format": "uuid"
},
"role": {
"type": "string",
"enum": [
"user",
"assistant"
]
},
"question": {
"anyOf": [
{
"type": "string",
"maxLength": 2000
},
{
"type": "null"
}
]
},
"answer": {
"anyOf": [
{
"type": "object",
"properties": {
"answer": {
"type": "object",
"properties": {
"statement": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"basis": {
"type": "string",
"enum": [
"observed",
"inferred",
"generated"
]
},
"evidence": {
"minItems": 1,
"maxItems": 20,
"type": "array",
"items": {
"type": "object",
"properties": {
"evidence_id": {
"type": "string",
"format": "uuid"
},
"revision": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"evidence_id",
"revision"
],
"additionalProperties": false
}
},
"uncertainty": {
"type": "string",
"maxLength": 1000
}
},
"required": [
"statement",
"basis",
"evidence",
"uncertainty"
],
"additionalProperties": false
},
"findings": {
"maxItems": 12,
"type": "array",
"items": {
"type": "object",
"properties": {
"statement": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"basis": {
"type": "string",
"enum": [
"observed",
"inferred",
"generated"
]
},
"evidence": {
"minItems": 1,
"maxItems": 20,
"type": "array",
"items": {
"type": "object",
"properties": {
"evidence_id": {
"type": "string",
"format": "uuid"
},
"revision": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"evidence_id",
"revision"
],
"additionalProperties": false
}
},
"uncertainty": {
"type": "string",
"maxLength": 1000
}
},
"required": [
"statement",
"basis",
"evidence",
"uncertainty"
],
"additionalProperties": false
}
},
"sentiment": {
"maxItems": 20,
"type": "array",
"items": {
"type": "object",
"properties": {
"evidence_id": {
"type": "string",
"format": "uuid"
},
"revision": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"label": {
"type": "string",
"enum": [
"positive",
"negative",
"neutral",
"mixed",
"unknown"
]
},
"uncertainty": {
"type": "string",
"maxLength": 1000
}
},
"required": [
"evidence_id",
"revision",
"label",
"uncertainty"
],
"additionalProperties": false
}
},
"query_suggestions": {
"maxItems": 5,
"type": "array",
"items": {
"type": "object",
"properties": {
"query": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"excluded_terms": {
"maxItems": 20,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
},
"evidence": {
"minItems": 1,
"maxItems": 20,
"type": "array",
"items": {
"type": "object",
"properties": {
"evidence_id": {
"type": "string",
"format": "uuid"
},
"revision": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"evidence_id",
"revision"
],
"additionalProperties": false
}
},
"rationale": {
"type": "string",
"minLength": 1,
"maxLength": 1000
}
},
"required": [
"query",
"excluded_terms",
"evidence",
"rationale"
],
"additionalProperties": false
}
},
"limitations": {
"minItems": 1,
"maxItems": 10,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 1000
}
},
"quantitative_claims": {
"type": "boolean",
"const": false
},
"method_version": {
"type": "string",
"const": "research-cited/v1"
}
},
"required": [
"answer",
"findings",
"sentiment",
"query_suggestions",
"limitations",
"quantitative_claims",
"method_version"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"created_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"
}
},
"required": [
"id",
"run_id",
"role",
"question",
"answer",
"created_at",
"expires_at"
],
"additionalProperties": false
}
},
"runs": {
"maxItems": 20,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"workspace_id": {
"type": "string",
"format": "uuid"
},
"conversation_id": {
"type": "string",
"format": "uuid"
},
"conversation_revision": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"generation": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"request_kind": {
"type": "string",
"enum": [
"question",
"overview",
"themes",
"audiences",
"sentiment",
"query_suggestions"
]
},
"status": {
"type": "string",
"enum": [
"queued",
"processing",
"completed",
"failed",
"cancelled",
"expired",
"unavailable"
]
},
"failure_code": {
"anyOf": [
{
"type": "string",
"enum": [
"not_configured",
"budget_exhausted",
"access_changed",
"source_unavailable",
"context_changed",
"input_too_large",
"provider_unavailable",
"generation_unconfirmed",
"invalid_output",
"cancelled",
"expired",
"conversation_full"
]
},
{
"type": "null"
}
]
},
"created_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"
},
"processor": {
"type": "string",
"const": "Google Gemini"
},
"model_id": {
"anyOf": [
{
"type": "string",
"maxLength": 128
},
{
"type": "null"
}
]
},
"model_version": {
"anyOf": [
{
"type": "string",
"maxLength": 128
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"workspace_id",
"conversation_id",
"conversation_revision",
"generation",
"request_kind",
"status",
"failure_code",
"created_at",
"expires_at",
"processor",
"model_id",
"model_version"
],
"additionalProperties": false
}
},
"availability": {
"type": "object",
"properties": {
"configured": {
"type": "boolean"
},
"reason": {
"anyOf": [
{
"type": "string",
"enum": [
"not_configured",
"budget_exhausted",
"access_changed",
"source_unavailable",
"context_changed",
"input_too_large",
"provider_unavailable",
"generation_unconfirmed",
"invalid_output",
"cancelled",
"expired",
"conversation_full"
]
},
{
"type": "null"
}
]
},
"processor": {
"type": "string",
"const": "Google Gemini"
},
"retention_hours": {
"type": "number",
"const": 24
}
},
"required": [
"configured",
"reason",
"processor",
"retention_hours"
],
"additionalProperties": false
}
},
"required": [
"conversation",
"messages",
"runs",
"availability"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}Exemplo de chamada de ferramenta
Estes exemplos usam valores fictícios verificados conforme os schemas. Substitua os IDs por aqueles que você tem autorização para usar, a mídia por ativos prontos e as datas pelo horário de publicação confirmado. Confira a elegibilidade da conta antes de enviar uma gravação. Esta página não envia requisições de API.
{
"name": "sosoapi_research_conversations_archive",
"arguments": {
"workspace_id": "11111111-1111-4111-8111-111111111111",
"mutation_id": "11111111-1111-4111-8111-111111111111",
"conversation_id": "11111111-1111-4111-8111-111111111111",
"expected_revision": 1
}
}structuredContent
{
"conversation": {
"id": "11111111-1111-4111-8111-111111111111",
"workspace_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"title": null,
"context": {
"project_id": "11111111-1111-4111-8111-111111111111",
"project_revision": 1,
"corpus_snapshot_id": "11111111-1111-4111-8111-111111111111",
"evidence": [
{
"evidence_id": "11111111-1111-4111-8111-111111111111",
"revision": 1
}
]
},
"language": "example",
"archived": false,
"availability": "available",
"created_at": "2099-01-15T09:00:00Z",
"expires_at": "2099-01-15T09:00:00Z"
},
"messages": [],
"runs": [],
"availability": {
"configured": false,
"reason": null,
"processor": "Google Gemini",
"retention_hours": 24
}
}