Skip to content

ToolAnnotations

Base classes

Name Children Inherits
ClaudeCodeBaseModel
clawd_code_sdk.models.base
Base model for all Claude Code Pydantic models.

⋔ Inheritance diagram

graph TD
  849571596["mcp.ToolAnnotations"]
  2604142835["base.ClaudeCodeBaseModel"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  2604142835 --> 849571596
  3879467795 --> 2604142835
  2751680898 --> 3879467795

🛈 DocStrings

Bases: ClaudeCodeBaseModel

Additional properties describing a Tool to clients.

Source code in src/clawd_code_sdk/models/mcp.py
class ToolAnnotations(ClaudeCodeBaseModel):
    """Additional properties describing a Tool to clients."""

    # title: str | None = None
    # """A human-readable title for the tool."""

    read_only: bool | None = None
    """Read-only hint."""

    destructive: bool | None = None
    """Destructive hint."""

    # idempotent: bool | None = None
    # """Idempodent hint."""

    open_world: bool | None = None
    """Open-world hint."""

destructive class-attribute instance-attribute

destructive: bool | None = None

Destructive hint.

open_world class-attribute instance-attribute

open_world: bool | None = None

Open-world hint.

read_only class-attribute instance-attribute

read_only: bool | None = None

Read-only hint.

:fa-brands-github: Show source on GitHub