| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:5dc23f64-00cc-a7d7-9b69-f60c9d3a6f4c |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 89D8:160EB:1A207A:21CF7C:6A601C45 |
| html-safe-nonce | 6e5f3f5237ed074e8e7f84d975a6ce059154d03148b9b2f851800581038f3ccb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OUQ4OjE2MEVCOjFBMjA3QToyMUNGN0M6NkE2MDFDNDUiLCJ2aXNpdG9yX2lkIjoiNTUzNTI0MTc3NTY5Nzg5NDQ2OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2bb1fa3008c5a5802a2a4471f75f0ed196fdc71ccb1c16918b23d8c28d56a4cb |
| hovercard-subject-tag | pull_request:3460362622 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/modelcontextprotocol/java-sdk/891/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/75a11808d404620ae1c958d0b6dadefde515eca99f47bbf39ac889198654396e/modelcontextprotocol/java-sdk/pull/891 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/75a11808d404620ae1c958d0b6dadefde515eca99f47bbf39ac889198654396e/modelcontextprotocol/java-sdk/pull/891 |
| og:image:alt | Resolves #356
Clarify the two-tier error model:
Recoverable tool errors: use CallToolResult with isError(true)
Protocol-level errors: throw McpError / let exceptions propagate as JSON-RPC errors
... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | radeshgovind-2005 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7e86a727ba4abf81d0638c5ead57286c17d3b2706f57813445c4316d8e848673 |
| turbo-cache-control | no-cache |
| go-import | github.com/modelcontextprotocol/java-sdk git https://github.com/modelcontextprotocol/java-sdk.git |
| octolytics-dimension-user_id | 182288589 |
| octolytics-dimension-user_login | modelcontextprotocol |
| octolytics-dimension-repository_id | 919609219 |
| octolytics-dimension-repository_nwo | modelcontextprotocol/java-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 919609219 |
| octolytics-dimension-repository_network_root_nwo | modelcontextprotocol/java-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 | f13d8ac548fb76838b3d703c7fe2100887547d0e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/modelcontextprotocol/java-sdk/pull/891#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fjava-sdk%2Fpull%2F891 |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| Code QualityEnforce quality at merge | https://github.com/features/code-quality |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://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%2Fjava-sdk%2Fpull%2F891 |
|
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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=modelcontextprotocol%2Fjava-sdk |
| Reload | https://github.com/modelcontextprotocol/java-sdk/pull/891 |
| Reload | https://github.com/modelcontextprotocol/java-sdk/pull/891 |
| Reload | https://github.com/modelcontextprotocol/java-sdk/pull/891 |
| Please reload this page | https://github.com/modelcontextprotocol/java-sdk/pull/891 |
|
modelcontextprotocol
| https://github.com/modelcontextprotocol |
| java-sdk | https://github.com/modelcontextprotocol/java-sdk |
|
Notifications
| https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fjava-sdk |
|
Fork
984
| https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fjava-sdk |
|
Star
3.6k
| https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fjava-sdk |
|
Code
| https://github.com/modelcontextprotocol/java-sdk |
|
Issues
136
| https://github.com/modelcontextprotocol/java-sdk/issues |
|
Pull requests
147
| https://github.com/modelcontextprotocol/java-sdk/pulls |
|
Discussions
| https://github.com/modelcontextprotocol/java-sdk/discussions |
|
Actions
| https://github.com/modelcontextprotocol/java-sdk/actions |
|
Projects
| https://github.com/modelcontextprotocol/java-sdk/projects |
|
Models
| https://github.com/modelcontextprotocol/java-sdk/models |
|
Security and quality
2
| https://github.com/modelcontextprotocol/java-sdk/security |
|
Insights
| https://github.com/modelcontextprotocol/java-sdk/pulse |
|
Code
| https://github.com/modelcontextprotocol/java-sdk |
|
Issues
| https://github.com/modelcontextprotocol/java-sdk/issues |
|
Pull requests
| https://github.com/modelcontextprotocol/java-sdk/pulls |
|
Discussions
| https://github.com/modelcontextprotocol/java-sdk/discussions |
|
Actions
| https://github.com/modelcontextprotocol/java-sdk/actions |
|
Projects
| https://github.com/modelcontextprotocol/java-sdk/projects |
|
Models
| https://github.com/modelcontextprotocol/java-sdk/models |
|
Security and quality
| https://github.com/modelcontextprotocol/java-sdk/security |
|
Insights
| https://github.com/modelcontextprotocol/java-sdk/pulse |
| Kehrlann | https://github.com/Kehrlann |
| modelcontextprotocol:main | https://github.com/modelcontextprotocol/java-sdk/tree/main |
| radeshgovind-2005:docs/error-handling-best-practices | https://github.com/radeshgovind-2005/java-sdk/tree/docs/error-handling-best-practices |
| Conversation | https://github.com/modelcontextprotocol/java-sdk/pull/891 |
| Commits6 (6) | https://github.com/modelcontextprotocol/java-sdk/pull/891/commits |
| Checks | https://github.com/modelcontextprotocol/java-sdk/pull/891/checks |
| Files changed | https://github.com/modelcontextprotocol/java-sdk/pull/891/files |
| docs: document best practice for handling argument errors in MCP tools | https://github.com/modelcontextprotocol/java-sdk/pull/891#top |
| Kehrlann | https://github.com/Kehrlann |
| modelcontextprotocol:main | https://github.com/modelcontextprotocol/java-sdk/tree/main |
| radeshgovind-2005:docs/error-handling-best-practices | https://github.com/radeshgovind-2005/java-sdk/tree/docs/error-handling-best-practices |
|
| https://github.com/radeshgovind-2005 |
| radeshgovind-2005 | https://github.com/radeshgovind-2005 |
| Mar 28, 2026 | https://github.com/modelcontextprotocol/java-sdk/pull/891#issue-4158885878 |
| #356 | https://github.com/modelcontextprotocol/java-sdk/issues/356 |
| #356 | https://github.com/modelcontextprotocol/java-sdk/issues/356 |
| Please reload this page | https://github.com/modelcontextprotocol/java-sdk/pull/891 |
|
| https://github.com/radeshgovind-2005 |
| docs: document best practice for error handling in MCP tool implement… | https://github.com/modelcontextprotocol/java-sdk/pull/891/commits/e87d015b13170752047f80a0745ea862dff91234 |
| e87d015 | https://github.com/modelcontextprotocol/java-sdk/pull/891/commits/e87d015b13170752047f80a0745ea862dff91234 |
| modelcontextprotocol#356 | https://github.com/modelcontextprotocol/java-sdk/issues/356 |
| https://github.com/Kehrlann |
| Kehrlann | https://github.com/Kehrlann |
|
Apr 1, 2026
| https://github.com/modelcontextprotocol/java-sdk/pull/891#pullrequestreview-4044917455 |
|
View reviewed changes
| https://github.com/modelcontextprotocol/java-sdk/pull/891/files/e87d015b13170752047f80a0745ea862dff91234 |
| Kehrlann | https://github.com/Kehrlann |
| Please reload this page | https://github.com/modelcontextprotocol/java-sdk/pull/891 |
| https://github.com/modelcontextprotocol/java-sdk/pull/891#pullrequestreview-4044917455 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/modelcontextprotocol/java-sdk/pull/891 |
| docs/server.md | https://github.com/modelcontextprotocol/java-sdk/pull/891/files/e87d015b13170752047f80a0745ea862dff91234#diff-307dce2103600fbe7bdad557e2576f7c0a7f658e9600357c81ba7c4b642d49b6 |
| Please reload this page | https://github.com/modelcontextprotocol/java-sdk/pull/891 |
| docs/server.md | https://github.com/modelcontextprotocol/java-sdk/pull/891/files/e87d015b13170752047f80a0745ea862dff91234#diff-307dce2103600fbe7bdad557e2576f7c0a7f658e9600357c81ba7c4b642d49b6 |
| Please reload this page | https://github.com/modelcontextprotocol/java-sdk/pull/891 |
| docs/server.md | https://github.com/modelcontextprotocol/java-sdk/pull/891/files/e87d015b13170752047f80a0745ea862dff91234#diff-307dce2103600fbe7bdad557e2576f7c0a7f658e9600357c81ba7c4b642d49b6 |
| Please reload this page | https://github.com/modelcontextprotocol/java-sdk/pull/891 |
| https://github.com/Kehrlann |
| Kehrlann | https://github.com/Kehrlann |
| Apr 1, 2026 | https://github.com/modelcontextprotocol/java-sdk/pull/891#event-24116003822 |
| https://github.com/Kehrlann |
| Kehrlann | https://github.com/Kehrlann |
|
documentation
| https://github.com/modelcontextprotocol/java-sdk/issues?q=state%3Aopen%20label%3Adocumentation |
|
waiting for user
| https://github.com/modelcontextprotocol/java-sdk/issues?q=state%3Aopen%20label%3A%22waiting%20for%20user%22 |
| Apr 1, 2026 | https://github.com/modelcontextprotocol/java-sdk/pull/891#event-24116008010 |
| radeshgovind-2005 | https://github.com/radeshgovind-2005 |
| April 1, 2026 16:22 | https://github.com/modelcontextprotocol/java-sdk/pull/891#commits-pushed-84ea9ed |
|
| https://github.com/radeshgovind-2005 |
|
| https://github.com/Kehrlann |
| docs: clarify infrastructure errors | https://github.com/modelcontextprotocol/java-sdk/pull/891/commits/84ea9ed888b008970fdcd7d0886f63aa01ad7cf6 |
| 84ea9ed | https://github.com/modelcontextprotocol/java-sdk/pull/891/commits/84ea9ed888b008970fdcd7d0886f63aa01ad7cf6 |
|
| https://github.com/radeshgovind-2005 |
|
| https://github.com/Kehrlann |
| docs: consolidate summary table | https://github.com/modelcontextprotocol/java-sdk/pull/891/commits/aaa8f817a347d7c6c685f976359050ac6878f973 |
| aaa8f81 | https://github.com/modelcontextprotocol/java-sdk/pull/891/commits/aaa8f817a347d7c6c685f976359050ac6878f973 |
|
| https://github.com/radeshgovind-2005 |
| docs: update tool error handling example to use domain validation | https://github.com/modelcontextprotocol/java-sdk/pull/891/commits/1616f28caf3d1f6f76dae70967879657473058be |
| 1616f28 | https://github.com/modelcontextprotocol/java-sdk/pull/891/commits/1616f28caf3d1f6f76dae70967879657473058be |
| https://github.com/radeshgovind-2005 |
| radeshgovind-2005 | https://github.com/radeshgovind-2005 |
| Apr 1, 2026 | https://github.com/modelcontextprotocol/java-sdk/pull/891#issuecomment-4170952090 |
| @Kehrlann | https://github.com/Kehrlann |
| Please reload this page | https://github.com/modelcontextprotocol/java-sdk/pull/891 |
|
| https://github.com/radeshgovind-2005 |
| Merge branch 'main' into docs/error-handling-best-practices | https://github.com/modelcontextprotocol/java-sdk/pull/891/commits/511e654ace835be1bb9449de4ab370e17cb85e06 |
| 511e654 | https://github.com/modelcontextprotocol/java-sdk/pull/891/commits/511e654ace835be1bb9449de4ab370e17cb85e06 |
| https://github.com/Kehrlann |
| Kehrlann | https://github.com/Kehrlann |
|
waiting for user
| https://github.com/modelcontextprotocol/java-sdk/issues?q=state%3Aopen%20label%3A%22waiting%20for%20user%22 |
| Apr 2, 2026 | https://github.com/modelcontextprotocol/java-sdk/pull/891#event-24140983912 |
|
| https://github.com/Kehrlann |
| Merge branch 'main' into docs/error-handling-best-practices | https://github.com/modelcontextprotocol/java-sdk/pull/891/commits/1eaa91cc733ae86553fb5a1a711556ed63625e5b |
| 1eaa91c | https://github.com/modelcontextprotocol/java-sdk/pull/891/commits/1eaa91cc733ae86553fb5a1a711556ed63625e5b |
| https://github.com/Kehrlann |
| Kehrlann | https://github.com/Kehrlann |
| April 2, 2026 09:05 | https://github.com/modelcontextprotocol/java-sdk/pull/891#event-24141226204 |
| https://github.com/Kehrlann |
| Kehrlann | https://github.com/Kehrlann |
|
Apr 2, 2026
| https://github.com/modelcontextprotocol/java-sdk/pull/891#pullrequestreview-4049342554 |
|
View reviewed changes
| https://github.com/modelcontextprotocol/java-sdk/pull/891/files/1eaa91cc733ae86553fb5a1a711556ed63625e5b |
| https://github.com/Kehrlann |
| Kehrlann | https://github.com/Kehrlann |
| cd2c21c | https://github.com/modelcontextprotocol/java-sdk/commit/cd2c21c1c82a0ca45fd50e798464566aef9267e3 |
| Apr 2, 2026 | https://github.com/modelcontextprotocol/java-sdk/pull/891#event-24141259585 |
| Please reload this page | https://github.com/modelcontextprotocol/java-sdk/pull/891 |
| https://github.com/Kehrlann |
| Kehrlann | https://github.com/Kehrlann |
| Apr 2, 2026 | https://github.com/modelcontextprotocol/java-sdk/pull/891#issuecomment-4175799719 |
| Please reload this page | https://github.com/modelcontextprotocol/java-sdk/pull/891 |
| ashakirin | https://github.com/ashakirin |
|
Apr 10, 2026
| https://github.com/modelcontextprotocol/java-sdk/pull/891#ref-commit-d5ccb1d |
|
| https://github.com/radeshgovind-2005 |
|
| https://github.com/ashakirin |
| docs: document best practice for handling argument errors in MCP tools ( | https://github.com/ashakirin/java-sdk/commit/d5ccb1d78e578443e3734e1518c7614f6d5aa16a |
| d5ccb1d | https://github.com/ashakirin/java-sdk/commit/d5ccb1d78e578443e3734e1518c7614f6d5aa16a |
| modelcontextprotocol#891 | https://github.com/modelcontextprotocol/java-sdk/pull/891 |
| modelcontextprotocol#356 | https://github.com/modelcontextprotocol/java-sdk/issues/356 |
| https://github.co/hiddenchars |
| https://github.com/modelcontextprotocol/java-sdk/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fjava-sdk%2Fpull%2F891 |
|
| https://github.com/Kehrlann |
|
Kehrlann
| https://github.com/Kehrlann |
|
| https://github.com/modelcontextprotocol/java-sdk/pull/891/files/1eaa91cc733ae86553fb5a1a711556ed63625e5b |
|
| https://github.com/Kehrlann |
|
Kehrlann
| https://github.com/Kehrlann |
|
documentation
| https://github.com/modelcontextprotocol/java-sdk/issues?q=state%3Aopen%20label%3Adocumentation |
|
Document best Practice for Handling Argument Errors in MCP Tool Rendering
| https://github.com/modelcontextprotocol/java-sdk/issues/356 |
| Please reload this page | https://github.com/modelcontextprotocol/java-sdk/pull/891 |
|
| https://github.com/radeshgovind-2005 |
|
| https://github.com/Kehrlann |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |