Skip to content

OpenAI API specs impose max 64 characters limit on tool names#619

Open
antbob wants to merge 1 commit into
packit:mainfrom
antbob:openai_compat_tools
Open

OpenAI API specs impose max 64 characters limit on tool names#619
antbob wants to merge 1 commit into
packit:mainfrom
antbob:openai_compat_tools

Conversation

@antbob

@antbob antbob commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

This is something i ran into testing agents as skills with Claude Code using open weight models served by vLLM via OpenAI compatible API adapter. The problem is that OpenAI API spec limits tool names to 64 characters (which is a departure from the MCP spec where its up to 128 but its really up to implementation) and Claude Code prefixes everything so tool names blow up past 64 characters eg

mcp__ymir-privileged__get_failed_pipeline_jobs_from_merge_request

Since there is nothing that can be done about Claude Code behavior here its therefore a good workaround to shorten tool names where we can and where it doesnt compromise the meaning of those names so this PR does just that.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request simplifies the names of two GitLab-related tools by replacing "merge_request" with "mr" in their identifiers: "get_failed_pipeline_jobs_from_merge_request" becomes "get_failed_pipeline_jobs_from_mr" and "get_authorized_comments_from_merge_request" becomes "get_authorized_comments_from_mr". The preliminary testing agent configuration is updated accordingly to use the new tool name. There are no review comments, and I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@antbob

antbob commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator Author

hearing that agents as skill will be possibly going away / obsolete soon, this might be irrelevant then so feel free to close.

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.

1 participant