Repository navigation
feat(tools): Add outputSchema to get_release_details - #1983
Merged
Merged
Conversation
Return release details as structuredContent with a declared outputSchema instead of handwritten markdown. Fields are mapped explicitly; release health exposes only the documented currentProjectMeta keys and per-project adoption stages, so passthrough backend fields stay private. The search_issues follow-up hint moves into the tool description. Co-Authored-By: David Cramer <[email protected]>
dcramer
approved these changes
Nov 5, 2026
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
get_release_detailsnow returnsstructuredContentviastructuredResult()and declares a matchingoutputSchema, following the Structured Content policy indocs/contributing/tool-responses.md. The model-visible text becomes the server-generated pretty JSON of the same payload instead of handwritten markdown.Payload:
release(identity, dates, new issue count, projects, URL, last commit),health,deploys,commits.health/deploys/commitsarenullwhen the matchinginclude*flag is off, so every success path conforms to the schema.Every field is mapped explicitly. Health used to dump every
currentProjectMetakey and the rawadoptionStagesblob; it now exposes only the keys Sentry's release serializer documents (sessionsLowerBound/UpperBound,first/last/prev/nextReleaseVersion) and per-project{stage, adopted, unadopted}. Tests snapshot the structured payload, validate it against the schema, and assert that unknown meta keys, author emails, and passthrough release/project fields don't leak.The markdown "Response Notes" hint (
search_issueswithrelease:<version>) moved into the tool description, which is where durable follow-up guidance belongs per the policy. measure-tokens: 47,079 → 47,100 (+21, description only; the script does not countoutputSchema).toolDefinitions.jsonwill conflict with the sibling outputSchema PRs. On rebase, take either side and re-runpnpm run --filter @sentry/mcp-core generate-definitions.Evals not run (need provider keys).
via @dcramer.
--
View Session [Sentry]