readOnly

Marker UDA declaring the readOnlyHint behavioral hint (the MCP spec's ToolAnnotations.readOnlyHint). Attach alongside @tool; presence sets the hint to true, absence leaves it unset (omitted from the wire form).

Examples

@tool("search", "Search records")
@readOnly
string[] search(string q) { ... }