# Mapping Bitcoin Results to MCP Tool Responses Educational reference; not live-tested. A tool response should distinguish engine success from transport success. MCP tool execution failures can be represented with isError and text content. HTTP 200 alone is insufficient: inspect the WAB ok flag and result envelope. This minimal example deliberately withholds all wallet values and raw error messages; it is an acknowledgement mapper, not a balance formatter. A useful balance tool would validate documented result fields and release only the values authorized by the wallet owner. A timeout is not a zero balance. Protocol-level failures such as unknown methods are handled separately by the MCP server. ## Usage Run `python3 result.py` with its synthetic fixture. In a real integration, parse a bounded HTTP response before calling the mapper; handle malformed JSON and timeouts as failures. No wallet data is used. API: https://thamer.org/api License: see publication terms; obtain explicit licensing terms before redistribution.