Class RealtimeMcpListTools.Tool
-
- All Implemented Interfaces:
public final class RealtimeMcpListTools.ToolA tool available on an MCP server.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRealtimeMcpListTools.Tool.BuilderA builder for Tool.
-
Method Summary
Modifier and Type Method Description final JsonValue_inputSchema()The JSON schema describing the tool's input. final Stringname()The name of the tool. final JsonValue_annotations()Additional annotations about the tool. final Optional<String>description()The description of the tool. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<String>_description()Returns the raw JSON value of description. final Map<String, JsonValue>_additionalProperties()final RealtimeMcpListTools.Tool.BuildertoBuilder()final RealtimeMcpListTools.Toolvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static RealtimeMcpListTools.Tool.Builderbuilder()Returns a mutable builder for constructing an instance of Tool. -
-
Method Detail
-
_inputSchema
final JsonValue _inputSchema()
The JSON schema describing the tool's input.
This arbitrary value can be deserialized into a custom type using the
convertmethod:MyClass myObject = tool.inputSchema().convert(MyClass.class);
-
_annotations
final JsonValue _annotations()
Additional annotations about the tool.
This arbitrary value can be deserialized into a custom type using the
convertmethod:MyClass myObject = tool.annotations().convert(MyClass.class);
-
description
final Optional<String> description()
The description of the tool.
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_description
final JsonField<String> _description()
Returns the raw JSON value of description.
Unlike description, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final RealtimeMcpListTools.Tool.Builder toBuilder()
-
validate
final RealtimeMcpListTools.Tool validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static RealtimeMcpListTools.Tool.Builder builder()
Returns a mutable builder for constructing an instance of Tool.
The following fields are required:
.inputSchema() .name()
-
-
-
-