Helper module used to build ToolAnnotations structure.
(MCP protocol: 2025-11-25)
Short example:
%ToolAnnotations{}
|> ToolAnnotations.title("Search Tool")
|> ToolAnnotations.read_only_hint(true)
|> ToolAnnotations.build()Result:
%{title: "Search Tool", readOnlyHint: true}Specification: ToolAnnotations
Fields
| Field | Setter | Type | Required |
|---|---|---|---|
title | title/2 | string | no |
readOnlyHint | read_only_hint/2 | boolean | no |
destructiveHint | destructive_hint/2 | boolean | no |
idempotentHint | idempotent_hint/2 | boolean | no |
openWorldHint | open_world_hint/2 | boolean | no |