Entropic 2.14.3
Local-first agentic inference engine
Loading...
Searching...
No Matches
entropic::ToolDefinition Struct Reference

Parsed tool definition from JSON schema file. More...

#include <entropic/mcp/tool_base.h>

Public Attributes

std::string name
 Tool name (e.g., "read_file")
 
std::string description
 Human-readable description.
 
std::string input_schema
 JSON Schema for arguments (raw JSON string)
 
std::string output_schema
 JSON Schema for the result ("" = undeclared). v2.14.0.
 

Detailed Description

Parsed tool definition from JSON schema file.

v2.14.0 (gh#203): output_schema is the tool's declared response contract — MCP's outputSchema. For a bundled tool it is required, and the description's "Response format" section is GENERATED from it, so the shape a model is told and the shape a handler emits have one source.

Version
2.14.0

Definition at line 33 of file tool_base.h.

Member Data Documentation

◆ description

std::string entropic::ToolDefinition::description

Human-readable description.

Definition at line 35 of file tool_base.h.

◆ input_schema

std::string entropic::ToolDefinition::input_schema

JSON Schema for arguments (raw JSON string)

Definition at line 36 of file tool_base.h.

◆ name

std::string entropic::ToolDefinition::name

Tool name (e.g., "read_file")

Definition at line 34 of file tool_base.h.

◆ output_schema

std::string entropic::ToolDefinition::output_schema

JSON Schema for the result ("" = undeclared). v2.14.0.

Definition at line 37 of file tool_base.h.


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