GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — OpenAI/GPT tool-call path serializes omitted optional MCP string args as empty strings · Issue #33341 · anomalyco/opencode Closed DescriptionDescriptionIn opencode With Slack’s official remote MCP ( The same Slack MCP search tools work on the Anthropic path, where unset optional arguments are omitted entirely. Affected Slack MCP tools observed:
This looks similar to / related to:
Environment
Reproduction summaryConfigure Slack’s official MCP and call search tools with only the required query argument. Examples:
Run the same checks under:
Observed behaviorOn the OpenAI/GPT path, the generated MCP tool call includes optional string fields as empty strings, for example: {
"query": "known matching query",
"cursor": ""
}or for message search-like tools: {
"query": "known matching query",
"cursor": "",
"after": "",
"before": "",
"context_channel_id": ""
}Slack MCP treats these as explicit values, not as omitted fields. The search tools then return On the Anthropic path, the generated MCP tool call omits unset optional fields: {
"query": "known matching query"
}The same Slack MCP search tools return the expected results. Additional validationDirect MCP JSON-RPC calls to Slack’s MCP show the same omitted-vs-empty distinction:
So this does not appear to be an auth/scopes or MCP connectivity issue. Expected behavioropencode should preserve MCP optional argument semantics:
Actual behaviorOpenAI/GPT tool-call path appears to emit optional MCP string args as This causes Slack MCP search tools to fail or silently return incorrect empty results. Possible regression areaThis may be related to recent MCP/provider schema changes between
Suggested fix directionA robust fix could be one of:
The first or second option seems cleaner than a broad post-processing sanitizer. Reacted by ekisu, Björn Nilsved, Dmitry Nefedov, Chemi Atlow and Manuel Kehl Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |