Skip to content

API naming inconsistency: McpServerToolCreateOptions.ReadOnly vs ToolAnnotations.ReadOnlyHint #1454

@ericstj

Description

@ericstj

The server-side create options use short names (ReadOnly, Destructive, OpenWorld) while the client-side ToolAnnotations DTO uses Hint-suffixed names (ReadOnlyHint, DestructiveHint, OpenWorldHint).

The names differ even though they describe the same property. This surprises developers who set ReadOnly = true on the server and then read ReadOnlyHint on the client.

Consider either aligning the names (breaking change) or adding a clear doc note explaining why they differ.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions