René's URL Explorer Experiment


Title: make CallToolResult.content non-optional and relax output schema validation requirement by bhosmer-ant · Pull Request #559 · modelcontextprotocol/modelcontextprotocol · GitHub

Open Graph Title: make CallToolResult.content non-optional and relax output schema validation requirement by bhosmer-ant · Pull Request #559 · modelcontextprotocol/modelcontextprotocol

X Title: make CallToolResult.content non-optional and relax output schema validation requirement by bhosmer-ant · Pull Request #559 · modelcontextprotocol/modelcontextprotocol

Description: In service of compatibility and flexibility, make two changes around structured tool results: restore CallToolResult.content to non-optional status, making the introduction of structuredContent purely a additive change. relax spec language around output schema validation from MUST to SHOULD. Motivation and Context Changes were motivated by backward compatibility considerations. How Has This Been Tested? Tracking changes/tests in TypeScript SDK to follow. Breaking Changes Spec is still in draft. However, this actually reduces the delta in the draft spec. Types of changes Bug fix (non-breaking change which fixes an issue) New feature (non-breaking change which adds functionality) Breaking change (fix or feature that would cause existing functionality to change) Documentation update Checklist I have read the MCP Documentation My code follows the repository's style guidelines New and existing tests pass locally I have added appropriate error handling I have added or updated documentation as needed Additional context

Open Graph Description: In service of compatibility and flexibility, make two changes around structured tool results: restore CallToolResult.content to non-optional status, making the introduction of structuredContent pu...

X Description: In service of compatibility and flexibility, make two changes around structured tool results: restore CallToolResult.content to non-optional status, making the introduction of structuredContent pu...

Opengraph URL: https://github.com/modelcontextprotocol/modelcontextprotocol/pull/559

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:9f050bf1-018e-14ac-d572-cfe3ef137044
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA39C:179BE3:3255D9C:427726D:6A5CFE18
html-safe-nonce89de1142173b96dba2bdaf602078096d2254cf14d3e2dd01697f7689e1fc9e56
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzlDOjE3OUJFMzozMjU1RDlDOjQyNzcyNkQ6NkE1Q0ZFMTgiLCJ2aXNpdG9yX2lkIjoiMjYwMzkwODgwMjEyODE4MjgwOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac773a8803f5c7a0c560bedfaca9398425ffc5ec29045c8b47fa958cba39cfffee
hovercard-subject-tagpull_request:2534602203
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/modelcontextprotocol/modelcontextprotocol/pull/559/files
twitter:imagehttps://avatars.githubusercontent.com/u/177685734?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/177685734?s=400&v=4
og:image:altIn service of compatibility and flexibility, make two changes around structured tool results: restore CallToolResult.content to non-optional status, making the introduction of structuredContent pu...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/modelcontextprotocol/modelcontextprotocol git https://github.com/modelcontextprotocol/modelcontextprotocol.git
octolytics-dimension-user_id182288589
octolytics-dimension-user_loginmodelcontextprotocol
octolytics-dimension-repository_id862570523
octolytics-dimension-repository_nwomodelcontextprotocol/modelcontextprotocol
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id862570523
octolytics-dimension-repository_network_root_nwomodelcontextprotocol/modelcontextprotocol
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9c975978430e9ad293956f2bbdaf153b1bd84a99
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelcontextprotocol/modelcontextprotocol/pull/559/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fmodelcontextprotocol%2Fpull%2F559%2Ffiles
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%2Fmodelcontextprotocol%2Fpull%2F559%2Ffiles
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=modelcontextprotocol%2Fmodelcontextprotocol
Reloadhttps://github.com/modelcontextprotocol/modelcontextprotocol/pull/559/files
Reloadhttps://github.com/modelcontextprotocol/modelcontextprotocol/pull/559/files
Reloadhttps://github.com/modelcontextprotocol/modelcontextprotocol/pull/559/files
Please reload this pagehttps://github.com/modelcontextprotocol/modelcontextprotocol/pull/559/files
modelcontextprotocol https://github.com/modelcontextprotocol
modelcontextprotocolhttps://github.com/modelcontextprotocol/modelcontextprotocol
Notifications https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fmodelcontextprotocol
Fork 1.7k https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fmodelcontextprotocol
Star 8.6k https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fmodelcontextprotocol
Code https://github.com/modelcontextprotocol/modelcontextprotocol
Issues 112 https://github.com/modelcontextprotocol/modelcontextprotocol/issues
Pull requests 78 https://github.com/modelcontextprotocol/modelcontextprotocol/pulls
Discussions https://github.com/modelcontextprotocol/modelcontextprotocol/discussions
Actions https://github.com/modelcontextprotocol/modelcontextprotocol/actions
Projects https://github.com/modelcontextprotocol/modelcontextprotocol/projects
Models https://github.com/modelcontextprotocol/modelcontextprotocol/models
Security and quality 0 https://github.com/modelcontextprotocol/modelcontextprotocol/security
Insights https://github.com/modelcontextprotocol/modelcontextprotocol/pulse
Code https://github.com/modelcontextprotocol/modelcontextprotocol
Issues https://github.com/modelcontextprotocol/modelcontextprotocol/issues
Pull requests https://github.com/modelcontextprotocol/modelcontextprotocol/pulls
Discussions https://github.com/modelcontextprotocol/modelcontextprotocol/discussions
Actions https://github.com/modelcontextprotocol/modelcontextprotocol/actions
Projects https://github.com/modelcontextprotocol/modelcontextprotocol/projects
Models https://github.com/modelcontextprotocol/modelcontextprotocol/models
Security and quality https://github.com/modelcontextprotocol/modelcontextprotocol/security
Insights https://github.com/modelcontextprotocol/modelcontextprotocol/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fmodelcontextprotocol%2Fmodelcontextprotocol%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fmodelcontextprotocol%2Fmodelcontextprotocol%2Fissues%2Fnew%2Fchoose
ihrprhttps://github.com/ihrpr
mainhttps://github.com/modelcontextprotocol/modelcontextprotocol/tree/main
basil/nonoptional_contenthttps://github.com/modelcontextprotocol/modelcontextprotocol/tree/basil/nonoptional_content
Conversation 1 https://github.com/modelcontextprotocol/modelcontextprotocol/pull/559
Commits 2 https://github.com/modelcontextprotocol/modelcontextprotocol/pull/559/commits
Checks 0 https://github.com/modelcontextprotocol/modelcontextprotocol/pull/559/checks
Files changed https://github.com/modelcontextprotocol/modelcontextprotocol/pull/559/files
Please reload this pagehttps://github.com/modelcontextprotocol/modelcontextprotocol/pull/559/files
make CallToolResult.content non-optional and relax output schema validation requirement https://github.com/modelcontextprotocol/modelcontextprotocol/pull/559/files#top
Show all changes 2 commits https://github.com/modelcontextprotocol/modelcontextprotocol/pull/559/files
4742501 make content nonoptional, relax schema validation requirement bhosmer-ant May 21, 2025 https://github.com/modelcontextprotocol/modelcontextprotocol/pull/559/commits/47425018ae8337f5e62f33c23c4286e829e6d9a7
9240700 Merge branch 'main' into basil/nonoptional_content bhosmer-ant May 21, 2025 https://github.com/modelcontextprotocol/modelcontextprotocol/pull/559/commits/924070054f8ecceefaec4c1dc0d971942c30a2f0
Clear filters https://github.com/modelcontextprotocol/modelcontextprotocol/pull/559/files
Please reload this pagehttps://github.com/modelcontextprotocol/modelcontextprotocol/pull/559/files
Please reload this pagehttps://github.com/modelcontextprotocol/modelcontextprotocol/pull/559/files
tools.mdx https://github.com/modelcontextprotocol/modelcontextprotocol/pull/559/files#diff-b9e0a7bbb019fcc50031c175463cdadb78ecb0b379cd6d90c5a8034bf6f86312
schema.json https://github.com/modelcontextprotocol/modelcontextprotocol/pull/559/files#diff-6b9b9329758616d1a3e50068743cb3c911cd0f15411e324bc21913cd7b5d0b0f
schema.ts https://github.com/modelcontextprotocol/modelcontextprotocol/pull/559/files#diff-273099cbfa5ca22c6af97f73eca738047952f7a8e7dffc4c1572fec3bdbbc211
https://github.com/modelcontextprotocol/modelcontextprotocol/blob/main/.github/CODEOWNERS#L7
docs/specification/draft/server/tools.mdxhttps://github.com/modelcontextprotocol/modelcontextprotocol/pull/559/files#diff-b9e0a7bbb019fcc50031c175463cdadb78ecb0b379cd6d90c5a8034bf6f86312
View file https://github.com/modelcontextprotocol/modelcontextprotocol/blob/924070054f8ecceefaec4c1dc0d971942c30a2f0/docs/specification/draft/server/tools.mdx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/modelcontextprotocol/pull/559/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/modelcontextprotocol/pull/559/files#diff-b9e0a7bbb019fcc50031c175463cdadb78ecb0b379cd6d90c5a8034bf6f86312
https://github.com/modelcontextprotocol/modelcontextprotocol/pull/559/files#diff-b9e0a7bbb019fcc50031c175463cdadb78ecb0b379cd6d90c5a8034bf6f86312
https://github.com/modelcontextprotocol/modelcontextprotocol/pull/559/files#diff-b9e0a7bbb019fcc50031c175463cdadb78ecb0b379cd6d90c5a8034bf6f86312
https://github.com/modelcontextprotocol/modelcontextprotocol/pull/559/files#diff-b9e0a7bbb019fcc50031c175463cdadb78ecb0b379cd6d90c5a8034bf6f86312
https://github.com/modelcontextprotocol/modelcontextprotocol/pull/559/files#diff-b9e0a7bbb019fcc50031c175463cdadb78ecb0b379cd6d90c5a8034bf6f86312
https://github.com/modelcontextprotocol/modelcontextprotocol/blob/main/.github/CODEOWNERS#L8
schema/draft/schema.jsonhttps://github.com/modelcontextprotocol/modelcontextprotocol/pull/559/files#diff-6b9b9329758616d1a3e50068743cb3c911cd0f15411e324bc21913cd7b5d0b0f
View file https://github.com/modelcontextprotocol/modelcontextprotocol/blob/924070054f8ecceefaec4c1dc0d971942c30a2f0/schema/draft/schema.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/modelcontextprotocol/pull/559/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/modelcontextprotocol/pull/559/files#diff-6b9b9329758616d1a3e50068743cb3c911cd0f15411e324bc21913cd7b5d0b0f
https://github.com/modelcontextprotocol/modelcontextprotocol/pull/559/files#diff-6b9b9329758616d1a3e50068743cb3c911cd0f15411e324bc21913cd7b5d0b0f
https://github.com/modelcontextprotocol/modelcontextprotocol/pull/559/files#diff-6b9b9329758616d1a3e50068743cb3c911cd0f15411e324bc21913cd7b5d0b0f
https://github.com/modelcontextprotocol/modelcontextprotocol/pull/559/files#diff-6b9b9329758616d1a3e50068743cb3c911cd0f15411e324bc21913cd7b5d0b0f
https://github.com/modelcontextprotocol/modelcontextprotocol/pull/559/files#diff-6b9b9329758616d1a3e50068743cb3c911cd0f15411e324bc21913cd7b5d0b0f
https://github.com/modelcontextprotocol/modelcontextprotocol/pull/559/files#diff-6b9b9329758616d1a3e50068743cb3c911cd0f15411e324bc21913cd7b5d0b0f
https://github.com/modelcontextprotocol/modelcontextprotocol/pull/559/files#diff-6b9b9329758616d1a3e50068743cb3c911cd0f15411e324bc21913cd7b5d0b0f
https://github.com/modelcontextprotocol/modelcontextprotocol/pull/559/files#diff-6b9b9329758616d1a3e50068743cb3c911cd0f15411e324bc21913cd7b5d0b0f
https://github.com/modelcontextprotocol/modelcontextprotocol/pull/559/files#diff-6b9b9329758616d1a3e50068743cb3c911cd0f15411e324bc21913cd7b5d0b0f
Please reload this pagehttps://github.com/modelcontextprotocol/modelcontextprotocol/pull/559/files
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.