Skip to content

Feature/fix tool 400 error#192

Open
h4ai wants to merge 2 commits intoericc-ch:masterfrom
h4ai:feature/fix-tool-400-error
Open

Feature/fix tool 400 error#192
h4ai wants to merge 2 commits intoericc-ch:masterfrom
h4ai:feature/fix-tool-400-error

Conversation

@h4ai
Copy link

@h4ai h4ai commented Feb 11, 2026

Background
When calling Copilot chat completions, we received a 400 error:
Invalid schema for function 'mcp__pencil__get_style_guide_tags': In context=(), object schema missing properties.

Change
Add a defensive normalization step so any tool parameter schema with [type: "object"] always includes a [properties]field before sending to Copilot.

Result
Fixes the invalid_function_parameters error and allows tool calls to be accepted correctly by Copilot.

h4ai added 2 commits February 11, 2026 13:24
…nput has a properties field, which avoids the Copilot 400: object schema missing properties.
jacks0n pushed a commit to jacks0n/copilot-api that referenced this pull request Feb 12, 2026
Normalize tool parameter schema so that any object-type tool input has
a properties field. This avoids the Copilot 400 error: "object schema
missing properties".

PR: ericc-ch#192
jacks0n added a commit to jacks0n/copilot-api that referenced this pull request Feb 12, 2026
Normalize tool parameter schema so that any object-type tool input has
a properties field. This avoids the Copilot 400 error: "object schema
missing properties".

PR: ericc-ch#192
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