Skip to content

feat(tools): Add outputSchema to get_release_details - #1983

Merged
dcramer merged 1 commit into
mainfrom
feat/get-release-details-structured-output
Nov 5, 2026
Merged

dcramer merged 1 commit into
mainfrom
feat/get-release-details-structured-output

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

get_release_details now returns structuredContent via structuredResult() and declares a matching outputSchema, following the Structured Content policy in docs/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/commits are null when the matching include* flag is off, so every success path conforms to the schema.

Every field is mapped explicitly. Health used to dump every currentProjectMeta key and the raw adoptionStages blob; 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_issues with release:<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 count outputSchema).

toolDefinitions.json will conflict with the sibling outputSchema PRs. On rebase, take either side and re-run pnpm run --filter @sentry/mcp-core generate-definitions.

Evals not run (need provider keys).

via @dcramer.

--

View Session [Sentry]

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]>
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Nov 5, 2026
@vercel

vercel Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sentry-local Ready Ready Preview Nov 5, 2026 6:46pm UTC

Request Review

@dcramer
dcramer enabled auto-merge (squash) November 5, 2026 18:36
@dcramer
dcramer merged commit c710dc1 into main Nov 5, 2026
34 of 35 checks passed
@dcramer
dcramer deleted the feat/get-release-details-structured-output branch November 5, 2026 18:39

This branch was successfully deployed

1 active and 1 inactive deployments
Preview — 7546ba36 Deployed Nov 5, 2026 by vercel[bot]
Actions — 7546ba36 Deployed Nov 5, 2026 by sentry-junior[bot] via eval #1572
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant