Title: No way to set isError=True for arbitrary tool result content · Issue #348 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: No way to set isError=True for arbitrary tool result content · Issue #348 · modelcontextprotocol/python-sdk
X Title: No way to set isError=True for arbitrary tool result content · Issue #348 · modelcontextprotocol/python-sdk
Description: There appears to be no way to manually toggle isError=True for non-text content. For example, you can't return an image with isError=True. I noticed this when implementing a proxy using mcp.tool that recursively dispatches to call_tool. ...
Open Graph Description: There appears to be no way to manually toggle isError=True for non-text content. For example, you can't return an image with isError=True. I noticed this when implementing a proxy using mcp.tool th...
X Description: There appears to be no way to manually toggle isError=True for non-text content. For example, you can't return an image with isError=True. I noticed this when implementing a proxy using mcp.too...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/issues/348
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"No way to set isError=True for arbitrary tool result content","articleBody":"There appears to be no way to manually toggle isError=True for non-text content. For example, you can't return an image with isError=True. I noticed this when implementing a proxy using mcp.tool that recursively dispatches to call_tool. Returning content is fine, but there's no good way to make use of isError, unless you have a single string in which case you can raise an Exception and get isError toggled that way.","author":{"url":"https://github.com/ezyang","@type":"Person","name":"ezyang"},"datePublished":"2025-03-23T08:30:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/348/python-sdk/issues/348"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:275d2bf3-1e54-b6d6-e49c-669964f4797a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A2CC:380309:F4CDC:157782:696F7966 |
| html-safe-nonce | 8e156ce8c62c81f9424379397f3183053919ef156b7129ae1e0abc33a0ce070d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMkNDOjM4MDMwOTpGNENEQzoxNTc3ODI6Njk2Rjc5NjYiLCJ2aXNpdG9yX2lkIjoiNzY4Njk4MzM2MjgwNTQxNTQzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | af7094a7aec52a672479e7d65780049e274f3ec76db76c26a0aa0d90e45d993a |
| hovercard-subject-tag | issue:2941022722 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/modelcontextprotocol/python-sdk/348/issue_layout |
| twitter:image | https://opengraph.githubassets.com/130322c9b2683b5d8136d336f183a2ddb67ca456eef0c35f311c99d9da9b1e14/modelcontextprotocol/python-sdk/issues/348 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/130322c9b2683b5d8136d336f183a2ddb67ca456eef0c35f311c99d9da9b1e14/modelcontextprotocol/python-sdk/issues/348 |
| og:image:alt | There appears to be no way to manually toggle isError=True for non-text content. For example, you can't return an image with isError=True. I noticed this when implementing a proxy using mcp.tool th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ezyang |
| hostname | github.com |
| expected-hostname | github.com |
| None | acc7f8c2e144976eeb6e7a73826049dd183bc572ccf5eaa9afb8265c617a97ab |
| turbo-cache-control | no-preview |
| go-import | github.com/modelcontextprotocol/python-sdk git https://github.com/modelcontextprotocol/python-sdk.git |
| octolytics-dimension-user_id | 182288589 |
| octolytics-dimension-user_login | modelcontextprotocol |
| octolytics-dimension-repository_id | 862584018 |
| octolytics-dimension-repository_nwo | modelcontextprotocol/python-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 862584018 |
| octolytics-dimension-repository_network_root_nwo | modelcontextprotocol/python-sdk |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cc546a224d6d4726a8d7c3a0dfe0cf65dbf9b7bd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width