McpToolAnnotations

data class McpToolAnnotations(val title: String? = null, val readOnlyHint: Boolean? = null, val destructiveHint: Boolean? = null, val idempotentHint: Boolean? = null, val openWorldHint: Boolean? = null)

SDK-neutral MCP tool annotations, exposed for framework interop. Kept independent of the Java and Kotlin MCP SDK types so the interop surface is the same on JVM and Android; each platform maps its SDK's annotations into this. A null hint means the server omitted it: per the MCP spec, callers should treat an absent readOnlyHint or idempotentHint as false and an absent destructiveHint or openWorldHint as true.

Constructors

Link copied to clipboard
constructor(title: String? = null, readOnlyHint: Boolean? = null, destructiveHint: Boolean? = null, idempotentHint: Boolean? = null, openWorldHint: Boolean? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard