Class BetaMcpTool
-
- All Implemented Interfaces:
public final class BetaMcpToolA tool as an MCP server lists it: its name on that server, its description, and its input schema.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaMcpTool.BuilderA builder for BetaMcpTool.
public final classBetaMcpTool.InputSchema
-
Method Summary
Modifier and Type Method Description final BetaMcpTool.InputSchemainputSchema()final Stringname()final Optional<String>description()final BetaMcpToolParamtoParam()final JsonField<BetaMcpTool.InputSchema>_inputSchema()Returns the raw JSON value of inputSchema. 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 BetaMcpTool.BuildertoBuilder()final BetaMcpToolvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaMcpTool.Builderbuilder()Returns a mutable builder for constructing an instance of BetaMcpTool. -
-
Method Detail
-
inputSchema
final BetaMcpTool.InputSchema inputSchema()
-
description
final Optional<String> description()
-
toParam
final BetaMcpToolParam toParam()
-
_inputSchema
final JsonField<BetaMcpTool.InputSchema> _inputSchema()
Returns the raw JSON value of inputSchema.
Unlike inputSchema, this method doesn't throw if the JSON field has an unexpected type.
-
_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 BetaMcpTool.Builder toBuilder()
-
validate
final BetaMcpTool 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 BetaMcpTool.Builder builder()
Returns a mutable builder for constructing an instance of BetaMcpTool.
The following fields are required:
.inputSchema() .name()
-
-
-
-