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

Metadata describing a callable MCP tool. More...

#include <tool.hpp>

Public Member Functions

TaskSupport task_support () const noexcept
 Returns the effective task support mode for this tool.
 

Public Attributes

std::string title
 Optional human-readable display title.
 
std::string name
 Stable protocol identifier used by tools/call.
 
std::string description
 Human-readable tool description.
 
Json input_schema = Json::object()
 JSON Schema object describing accepted arguments.
 
Json output_schema = Json::object()
 Optional JSON Schema object describing structured result content.
 
bool output_schema_present = false
 Whether output_schema was explicitly present on the wire or configured.
 
bool streaming = false
 Whether the tool may stream partial results outside a single response.
 
std::vector< Iconicons
 Optional icon descriptors for client presentation.
 
std::optional< ToolExecutionexecution
 Optional execution configuration including task support mode.
 
std::optional< ToolAnnotationstool_annotations
 Optional typed tool annotations for model or client presentation.
 
Json annotations = Json::object()
 Optional raw annotations preserved for forward-compatible round trips.
 
std::optional< Jsonmeta
 Optional _meta extension object preserved on the wire.
 
Json extensions = Json::object()
 Unknown JSON members preserved for forward-compatible round trips.
 

Detailed Description

Metadata describing a callable MCP tool.


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