Skip to content

[Schema] No support for additonalProperties in tool input schema #370

@harker777

Description

@harker777

Is your feature request related to a problem? Please describe.
There is no proper support for "strict" json schema mode in tool input schema due to not having 'additionalProperties' field.

Describe the solution you'd like
Support 'additionalProperties' in tool input schema same like in tool output schema.

Describe alternatives you've considered
Ignoring phpstan sealed array rule - makes code less reliable.

Additional context
This is sometimes needed when integrating mcp server with software that requires tool input/output schema to follow strict json schema (no additional properties allowed for example, all fields required etc). These sometimes refuse to work with tools whose schema isn't 'strict' enough.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementRequest for a new feature that's not currently supported

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions