structuredContent is optional because error responses legitimately carry
only content (the human-readable error text) — forcing every wrapper to
fabricate an empty structuredContent obscures the success/error split.
All success builders in this file still populate it.
Uses Record<string, unknown> for structuredContent to satisfy
MCP SDK's CallToolResult index signature requirement.
MCP-compatible tool response shape.
structuredContentis optional because error responses legitimately carry onlycontent(the human-readable error text) — forcing every wrapper to fabricate an empty structuredContent obscures the success/error split. All success builders in this file still populate it.Uses Record<string, unknown> for structuredContent to satisfy MCP SDK's CallToolResult index signature requirement.