Skip to content

Shorten pulse tool names to fit 64-char AWS Bedrock limit#495

Open
nelsonbu wants to merge 3 commits into
tableau:mainfrom
nelsonbu:fix/shorten-pulse-tool-names-494
Open

Shorten pulse tool names to fit 64-char AWS Bedrock limit#495
nelsonbu wants to merge 3 commits into
tableau:mainfrom
nelsonbu:fix/shorten-pulse-tool-names-494

Conversation

@nelsonbu

Copy link
Copy Markdown

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

Original Renamed Length
generate-pulse-metric-value-insight-bundle (44) generate-pulse-insight-bundle 30
list-pulse-metric-definitions-from-definition-ids (50) list-pulse-metric-defs-from-def-ids 36
list-pulse-metrics-from-metric-definition-id (44) list-pulse-metrics-from-metric-def-id 37

All 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.ts
  • src/server/oauth/scopes.ts
  • src/tools/web/pulse/generateMetricValueInsightBundle/generatePulseMetricValueInsightBundleTool.ts
  • src/tools/web/pulse/generateMetricValueInsightBundle/generatePulseMetricValueInsightBundleTool.test.ts
  • src/tools/web/pulse/listMetricDefinitionsFromDefinitionIds/listPulseMetricDefinitionsFromDefinitionIds.ts
  • src/tools/web/pulse/listMetricDefinitionsFromDefinitionIds/listPulseMetricDefinitionsFromDefinitionIds.test.ts
  • src/tools/web/pulse/listMetricsFromMetricDefinitionId/listPulseMetricsFromMetricDefinitionId.ts
  • src/tools/web/pulse/listMetricsFromMetricDefinitionId/listPulseMetricsFromMetricDefinitionId.test.ts

Testing

Unit tests updated to reflect new tool names. Logic is unchanged — these are pure string renames.

@salesforce-cla

Copy link
Copy Markdown

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
nelsonbu force-pushed the fix/shorten-pulse-tool-names-494 branch from 7e7bf32 to 324a969 Compare July 13, 2026 16:56
@salesforce-cla

Copy link
Copy Markdown

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
nelsonbu force-pushed the fix/shorten-pulse-tool-names-494 branch from 324a969 to 2683447 Compare July 13, 2026 16:57
nelsonbu added 2 commits July 16, 2026 14:00
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tool names exceed 64-char limit when namespaced by Claude Code / AWS Bedrock

1 participant