Class: MCPToolResponse¶
Successful MCP tool response. Closes audit §3.1 row 16. The duration_ms slot preserves the wire format used by the live MCP server and replay subsystem.
URI: debrief:class/MCPToolResponse
classDiagram
class MCPToolResponse
click MCPToolResponse href "../../classes/MCPToolResponse/"
MCPToolResponse : content
MCPToolResponse --> "1..*" MCPContentItem : content
click MCPContentItem href "../../classes/MCPContentItem/"
MCPToolResponse : duration_ms
MCPToolResponse : is_error
MCPToolResponse : structured_content
MCPToolResponse --> "0..1" Any : structured_content
click Any href "../../classes/Any/"
Slots¶
| Name | Cardinality and Range | Description | Inheritance |
|---|---|---|---|
| content | 1..* MCPContentItem |
Ordered list of content items returned by the tool | direct |
| duration_ms | 1 Integer |
Wall-clock duration of the tool invocation in milliseconds | direct |
| is_error | 0..1 Boolean |
Reserved for streaming partial-error responses (additive over the live wire f... | direct |
| structured_content | 0..1 Any |
Reserved for top-level free-form payload (e | direct |
Identifier and Mapping Information¶
Schema Source¶
- from schema: https://debrief.info/schemas/debrief
Mappings¶
| Mapping Type | Mapped Value |
|---|---|
| self | debrief:MCPToolResponse |
| native | debrief:MCPToolResponse |
LinkML Source¶
Direct¶
name: MCPToolResponse
description: Successful MCP tool response. Closes audit §3.1 row 16. The `duration_ms`
slot preserves the wire format used by the live MCP server and replay subsystem.
from_schema: https://debrief.info/schemas/debrief
attributes:
content:
name: content
description: Ordered list of content items returned by the tool.
from_schema: https://debrief.info/schemas/mcp
rank: 1000
domain_of:
- MCPToolResponse
range: MCPContentItem
required: true
multivalued: true
duration_ms:
name: duration_ms
description: Wall-clock duration of the tool invocation in milliseconds.
from_schema: https://debrief.info/schemas/mcp
rank: 1000
domain_of:
- MCPToolResponse
- MCPErrorResponse
- ToolResultForLog
- ToolExecutionResultForReplay
range: integer
required: true
is_error:
name: is_error
description: Reserved for streaming partial-error responses (additive over the
live wire format).
from_schema: https://debrief.info/schemas/mcp
rank: 1000
domain_of:
- MCPToolResponse
range: boolean
structured_content:
name: structured_content
description: Reserved for top-level free-form payload (e.g. vega-spec) — Article
XV.2 exception. Additive over the live wire format.
from_schema: https://debrief.info/schemas/mcp
rank: 1000
domain_of:
- MCPToolResponse
range: Any
Induced¶
name: MCPToolResponse
description: Successful MCP tool response. Closes audit §3.1 row 16. The `duration_ms`
slot preserves the wire format used by the live MCP server and replay subsystem.
from_schema: https://debrief.info/schemas/debrief
attributes:
content:
name: content
description: Ordered list of content items returned by the tool.
from_schema: https://debrief.info/schemas/mcp
rank: 1000
alias: content
owner: MCPToolResponse
domain_of:
- MCPToolResponse
range: MCPContentItem
required: true
multivalued: true
duration_ms:
name: duration_ms
description: Wall-clock duration of the tool invocation in milliseconds.
from_schema: https://debrief.info/schemas/mcp
rank: 1000
alias: duration_ms
owner: MCPToolResponse
domain_of:
- MCPToolResponse
- MCPErrorResponse
- ToolResultForLog
- ToolExecutionResultForReplay
range: integer
required: true
is_error:
name: is_error
description: Reserved for streaming partial-error responses (additive over the
live wire format).
from_schema: https://debrief.info/schemas/mcp
rank: 1000
alias: is_error
owner: MCPToolResponse
domain_of:
- MCPToolResponse
range: boolean
structured_content:
name: structured_content
description: Reserved for top-level free-form payload (e.g. vega-spec) — Article
XV.2 exception. Additive over the live wire format.
from_schema: https://debrief.info/schemas/mcp
rank: 1000
alias: structured_content
owner: MCPToolResponse
domain_of:
- MCPToolResponse
range: Any