cxxmcp 1.1.6
C++ MCP SDK
Loading...
Searching...
No Matches
mcp::protocol::ToolAnnotations Struct Reference

Typed representation of MCP tool annotations. More...

#include <annotations.hpp>

Public Attributes

std::optional< std::string > title
 Optional human-readable display title for the tool.
 
std::optional< std::string > description_hint
 Optional hint describing what the tool does.
 
std::optional< bool > destructive_hint
 Whether the tool may perform destructive actions.
 
std::optional< bool > read_only_hint
 Whether the tool only reads data without side effects.
 
std::optional< bool > open_world_hint
 Whether the tool may interact with an open world of entities.
 
std::optional< bool > idempotent_hint
 Whether the tool is idempotent (safe to retry).
 
Json raw = Json::object()
 Unknown JSON members preserved for forward-compatible round trips.
 

Detailed Description

Typed representation of MCP tool annotations.

Maps to the ToolAnnotations struct in the MCP reference model (rmcp::ToolAnnotations). All fields are optional; absent members are omitted from the serialized JSON.


The documentation for this struct was generated from the following file: