René's URL Explorer Experiment


Title: CallToolResult type missing member structuredContent · Issue #810 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: CallToolResult type missing member structuredContent · Issue #810 · modelcontextprotocol/python-sdk

X Title: CallToolResult type missing member structuredContent · Issue #810 · modelcontextprotocol/python-sdk

Description: Describe the bug When a tool call is made to any tool with a defined outputSchema, the server absolutely blows up if the function implementing the tool call does not include structuredContent. This structuredContent is included in the da...

Open Graph Description: Describe the bug When a tool call is made to any tool with a defined outputSchema, the server absolutely blows up if the function implementing the tool call does not include structuredContent. This...

X Description: Describe the bug When a tool call is made to any tool with a defined outputSchema, the server absolutely blows up if the function implementing the tool call does not include structuredContent. This...

Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/issues/810

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"CallToolResult type missing member structuredContent","articleBody":"**Describe the bug**\n\nWhen a tool call is made to any tool with a defined outputSchema, the server absolutely blows up if the function implementing the tool call does not include structuredContent.  \n\nThis structuredContent is included in the data.result of the server's response.\n\nOn client side, it definitely gets parsed and included in the CallToolResult object returned by session.call_tool().\n\nAll great so far.\n\nHowever, the definition of CallToolResult class **does not allow for a member named _structuredContent_**.\n\n(it also does not allow for a member named structured_content so that's not the issue).\n\n\n**To Reproduce**\nSteps to reproduce the behavior:\n1. Implement a tool \"get_structure\" with an _outputSchema_ using the ModelContentProtocol typescript SDK.\n2. Call that tool from the python SDK:\n        ```python\n        result:CallToolResult = await session.call_tool(name=\"get_structure\",arguments={})\n        print(f\"result.structuredContent = {result.structuredContent}\")\n       ```\n3. Notice that the print succeeds\n4. Notice that pyright complains that **Attribute \"structuredContent\" is unknown**\n\n**Expected behavior**\nThere should be an optional member called structuredContent in the declaration of CallToolResult:\n ```python\nstructuredContent: dict[str, Any] | list[Any] | str | int | float | bool | None = None\n```\n\n**Screenshots**\n\n\u003cimg width=\"1919\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/1c4d3940-fdf5-4ae9-8033-034d2bcb823d\" /\u003e\n\n\n**Additional context**\nAdd any other context about the problem here.\n","author":{"url":"https://github.com/stevemadere","@type":"Person","name":"stevemadere"},"datePublished":"2025-05-26T17:34:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/810/python-sdk/issues/810"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a362d09f-c39c-4ae0-9615-dbcd4a071f3c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idADF8:3EE07D:297DE4:3836BF:6A5A6BE1
html-safe-nonce770ce8588c2485305812f1ce13f3d98f327ee898663ea7f5c9182926d403908d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBREY4OjNFRTA3RDoyOTdERTQ6MzgzNkJGOjZBNUE2QkUxIiwidmlzaXRvcl9pZCI6IjI5NTExNTgxMTA2MDA0NTcxODUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac55d7eb4d81f27e9dc24e357b63080390663c72fee341ab99e6f98f623be4d3e9
hovercard-subject-tagissue:3091752303
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/modelcontextprotocol/python-sdk/810/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f5f47833ffdf3d788eb3b5126adaf182df690c1a890fc585aa25e40c14ae5303/modelcontextprotocol/python-sdk/issues/810
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f5f47833ffdf3d788eb3b5126adaf182df690c1a890fc585aa25e40c14ae5303/modelcontextprotocol/python-sdk/issues/810
og:image:altDescribe the bug When a tool call is made to any tool with a defined outputSchema, the server absolutely blows up if the function implementing the tool call does not include structuredContent. This...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamestevemadere
hostnamegithub.com
expected-hostnamegithub.com
None922bdba685ea48400234d557977f0e32d9adbae6f5125725b4f48cacc6801106
turbo-cache-controlno-preview
go-importgithub.com/modelcontextprotocol/python-sdk git https://github.com/modelcontextprotocol/python-sdk.git
octolytics-dimension-user_id182288589
octolytics-dimension-user_loginmodelcontextprotocol
octolytics-dimension-repository_id862584018
octolytics-dimension-repository_nwomodelcontextprotocol/python-sdk
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id862584018
octolytics-dimension-repository_network_root_nwomodelcontextprotocol/python-sdk
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release03575fc589c0e2692de839d7ca2b3aa5b5179f52
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/issues/810#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fissues%2F810
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fissues%2F810
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=modelcontextprotocol%2Fpython-sdk
Reloadhttps://github.com/modelcontextprotocol/python-sdk/issues/810
Reloadhttps://github.com/modelcontextprotocol/python-sdk/issues/810
Reloadhttps://github.com/modelcontextprotocol/python-sdk/issues/810
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/issues/810
modelcontextprotocol https://github.com/modelcontextprotocol
python-sdkhttps://github.com/modelcontextprotocol/python-sdk
Notifications https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk
Fork 3.7k https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk
Star 23.6k https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk
Code https://github.com/modelcontextprotocol/python-sdk
Issues 256 https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests 303 https://github.com/modelcontextprotocol/python-sdk/pulls
Actions https://github.com/modelcontextprotocol/python-sdk/actions
Projects https://github.com/modelcontextprotocol/python-sdk/projects
Models https://github.com/modelcontextprotocol/python-sdk/models
Security and quality 6 https://github.com/modelcontextprotocol/python-sdk/security
Insights https://github.com/modelcontextprotocol/python-sdk/pulse
Code https://github.com/modelcontextprotocol/python-sdk
Issues https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests https://github.com/modelcontextprotocol/python-sdk/pulls
Actions https://github.com/modelcontextprotocol/python-sdk/actions
Projects https://github.com/modelcontextprotocol/python-sdk/projects
Models https://github.com/modelcontextprotocol/python-sdk/models
Security and quality https://github.com/modelcontextprotocol/python-sdk/security
Insights https://github.com/modelcontextprotocol/python-sdk/pulse
CallToolResult type missing member structuredContenthttps://github.com/modelcontextprotocol/python-sdk/issues/810#top
https://github.com/bhosmer-ant
https://github.com/stevemadere
stevemaderehttps://github.com/stevemadere
on May 26, 2025https://github.com/modelcontextprotocol/python-sdk/issues/810#issue-3091752303
https://private-user-images.githubusercontent.com/4029925/447651062-1c4d3940-fdf5-4ae9-8033-034d2bcb823d.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODQzMTEwNTMsIm5iZiI6MTc4NDMxMDc1MywicGF0aCI6Ii80MDI5OTI1LzQ0NzY1MTA2Mi0xYzRkMzk0MC1mZGY1LTRhZTktODAzMy0wMzRkMmJjYjgyM2QucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MDcxNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjA3MTdUMTc1MjMzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MWZmNDQ1ZDYxZGI4NGU2M2NjNDY0OTU4MjhlMjJmZmZjNWUwNmE1ZDBmNjNhN2JkZDYwOWZlM2UzN2RmMjc2ZSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGcG5nIn0.wJKnkO1E7iBsdcZw3rZN3uy3aHj5H3A8DI_VTgPmwdg
bhosmer-anthttps://github.com/bhosmer-ant
🐛 🛠https://github.com/orgs/modelcontextprotocol/projects/4
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.