Skip to content

chore: Deprecate mcp.tool.result.content_count - #669

Merged
alexander-alderman-webb merged 2 commits into
mainfrom
webb/deprecate-mcp.tool.result.content_count
Oct 7, 2026
Merged

alexander-alderman-webb merged 2 commits into
mainfrom
webb/deprecate-mcp.tool.result.content_count

Conversation

@alexander-alderman-webb

@alexander-alderman-webb alexander-alderman-webb commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Description

The mcp.tool.result.content_count attribute is set by the Python SDK and I'd like to remove it in the next major.

The gen_ai.tool.call.result attribute can have any JSON type, and therefore doesn't intrinsically have a length.

In the Python SDK we have some type coersion and conditionally set the attribute.

PR Checklist

  • I have run yarn test and verified that the tests pass.
  • I have run yarn generate to generate and format code and docs.

If an attribute was added:

  • The attribute is in a namespace (e.g. nextjs.function_id, not function_id)
  • I have used the correct value for apply_scrubbing (i.e. manual or auto. Use never only for values that should never be scrubbed such as IDs)

If an attribute was deprecated:

@vercel

vercel Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
sentry-conventions Ready Ready Preview Oct 7, 2026 7:13am UTC

Request Review

@github-actions

github-actions Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Semver Impact of This PR

🟢 Patch (bug fixes)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

  • (model) Add metric model by giortzisg in #649

Bug Fixes 🐛

  • (attributes) Remove any as valid attribute type by Lms24 in #677

Internal Changes 🔧

Deps

  • Bump sharp from 0.35.4 to 0.35.5 by dependabot in #683
  • Bump source-map-js from 1.2.1 to 1.2.2 by dependabot in #675
  • Bump smol-toml from 1.8.0 to 1.9.0 by dependabot in #674
  • Bump postcss-selector-parser from 7.1.4 to 7.1.6 by dependabot in #676

Other

  • (deps-dev) Bump oxfmt to 0.72.0 to pull in patched tinypool by Lms24 in #682
  • (docs) Add link preview meta tags by Lms24 in #667
  • (publish) Stop npm version from rewriting yarn.lock by Lms24 in #678
  • Deprecate mcp.tool.result.content_count by alexander-alderman-webb in #669

🤖 This preview updates automatically when you update the PR.

@Lms24 Lms24 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM from conventions side. To double-check, the product doesn't rely on this attribute? (Doesn't block the deprecation, but should be checked at SDK removal time)

@alexander-alderman-webb
alexander-alderman-webb merged commit b06e641 into main Oct 7, 2026
18 checks passed
@alexander-alderman-webb
alexander-alderman-webb deleted the webb/deprecate-mcp.tool.result.content_count branch October 7, 2026 07:19

This branch was successfully deployed

1 active deployment
Preview — 2eeeae1e Deployed Oct 7, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants