Skip to content

mcp.types.Tool is not following python's naming convention  #97

Closed

Description

@santosflores

Describe the bug
The input schema property is not following the snake case convention. Currently the property is defined as "inputSchema" instead of "input_schema". Ideally we can follow the convention as it is widely adopted. Additionally, not following the convention requires more lines of code on the client when passing the available tools to the API request.

inputSchema: dict[str, Any]

Expected behavior
inputSchema get renamed to input_schema

Screenshots
N/A

Activity

  1. added a commit that references this issue on Dec 26, 2024
  2. soohoonc commented on Feb 21, 2025

    @soohoonc

    👍 this is very annoying

  3. added this to the Version 2.0 milestone on Aug 12, 2025
  4. added
    v2
    ready for work
    P3
    on Oct 6, 2025
  5. added
    enhancement
    and removed on Nov 12, 2025
  6. added
    breaking change
    on Dec 5, 2025
  7. maxisbey commented on Dec 8, 2025

    @maxisbey
    Contributor

    Closing as duplicate of #1738, which proposes renaming all types.py fields from camelCase to snake_case. This specific case (inputSchema → input_schema) will be addressed as part of that broader effort.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3breaking changeenhancementready for workv2

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions