Shorten pulse tool names to fit 64-char AWS Bedrock limit#495
Open
nelsonbu wants to merge 3 commits into
Open
Conversation
|
Thanks for the contribution! Unfortunately we can't verify the commit author(s): Nelson Bunker <n***@c***.com>. One possible solution is to add that email to your GitHub account. Alternatively you can change your commits to another email and force push the change. After getting your commits associated with your GitHub account, sign the Salesforce Inc. Contributor License Agreement and this Pull Request will be revalidated. |
nelsonbu
force-pushed
the
fix/shorten-pulse-tool-names-494
branch
from
July 13, 2026 16:56
7e7bf32 to
324a969
Compare
|
Thanks for the contribution! Before we can merge this, we need @nelsonbu to sign the Salesforce Inc. Contributor License Agreement. |
Three tool names exceeded the 64-character hard limit enforced by AWS Bedrock when namespaced by the Claude Code plugin system prefix (mcp__plugin_<plugin>_<server>__<tool>). No consumer-side workaround exists as the prefix length is structural. Renames: - generate-pulse-metric-value-insight-bundle -> generate-pulse-insight-bundle - list-pulse-metric-definitions-from-definition-ids -> list-pulse-metric-defs-from-def-ids - list-pulse-metrics-from-metric-definition-id -> list-pulse-metrics-from-metric-def-id All new names are ≤ 37 characters and consistent with existing sibling tool names in the pulse group.
nelsonbu
force-pushed
the
fix/shorten-pulse-tool-names-494
branch
from
July 13, 2026 16:57
324a969 to
2683447
Compare
Rename abbreviated names to readable forms per reviewer suggestion: - list-pulse-metric-defs-from-def-ids -> list-pulse-metric-definitions - list-pulse-metrics-from-metric-def-id -> list-pulse-metrics-from-definition-id Add toolName length guard test to catch violations at CI time.
64 is the raw Bedrock limit. The Claude Code plugin prefix mcp__plugin_<plugin>_<server_key>__ consumes at least 22 chars (empty server key), leaving 42 chars as the real ceiling.
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.
Summary
Closes #494
Three pulse tool names exceeded the 64-character hard limit enforced by AWS Bedrock when namespaced by the Claude Code plugin system (
mcp__plugin_<plugin>_<server>__<tool_name>). No consumer-side workaround exists — the prefix length is structural.Changes
generate-pulse-metric-value-insight-bundle(44)generate-pulse-insight-bundlelist-pulse-metric-definitions-from-definition-ids(50)list-pulse-metric-defs-from-def-idslist-pulse-metrics-from-metric-definition-id(44)list-pulse-metrics-from-metric-def-idAll new names are ≤ 37 characters and consistent with existing sibling tool names (
generate-pulse-insight-brief,list-pulse-metrics-from-metric-ids, etc.).Files Changed
src/tools/web/toolName.tssrc/server/oauth/scopes.tssrc/tools/web/pulse/generateMetricValueInsightBundle/generatePulseMetricValueInsightBundleTool.tssrc/tools/web/pulse/generateMetricValueInsightBundle/generatePulseMetricValueInsightBundleTool.test.tssrc/tools/web/pulse/listMetricDefinitionsFromDefinitionIds/listPulseMetricDefinitionsFromDefinitionIds.tssrc/tools/web/pulse/listMetricDefinitionsFromDefinitionIds/listPulseMetricDefinitionsFromDefinitionIds.test.tssrc/tools/web/pulse/listMetricsFromMetricDefinitionId/listPulseMetricsFromMetricDefinitionId.tssrc/tools/web/pulse/listMetricsFromMetricDefinitionId/listPulseMetricsFromMetricDefinitionId.test.tsTesting
Unit tests updated to reflect new tool names. Logic is unchanged — these are pure string renames.