Boost C++ Libraries

PrevUpHomeNext

Struct tool_spec

boost::taar::mcp::tool_spec — Everything tool() can say about a tool besides its callable.

Synopsis

// In header: <boost/taar/mcp/endpoint.hpp>


struct tool_spec {

  // public data members
  std::string name;
  std::string description;
  std::string title;
  std::optional< tool_annotations > annotations;
  std::optional< boost::json::object > output_schema;
};

Description

output_schema left unset derives a schema from the callable's return type (a described struct or string-keyed map as is; scalars, strings, enums and sequences under a result property, matching how results are wrapped); an empty object disables it.


PrevUpHomeNext