Class BetaMcpToolParam
-
- All Implemented Interfaces:
public final class BetaMcpToolParamA 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 classBetaMcpToolParam.BuilderA builder for BetaMcpToolParam.
public final classBetaMcpToolParam.InputSchemaThe tool's input schema as the MCP server lists it, verbatim.
-
Method Summary
Modifier and Type Method Description final BetaMcpToolParam.InputSchemainputSchema()The tool's input schema as the MCP server lists it, verbatim. final Stringname()The tool's name as the MCP server lists it (not prefixed with the server name). final Optional<String>description()The tool's description as the MCP server lists it. final JsonField<BetaMcpToolParam.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 BetaMcpToolParam.BuildertoBuilder()final BetaMcpToolParamvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaMcpToolParam.Builderbuilder()Returns a mutable builder for constructing an instance of BetaMcpToolParam. -
-
Method Detail
-
inputSchema
final BetaMcpToolParam.InputSchema inputSchema()
The tool's input schema as the MCP server lists it, verbatim.
-
name
final String name()
The tool's name as the MCP server lists it (not prefixed with the server name).
-
description
final Optional<String> description()
The tool's description as the MCP server lists it.
-
_inputSchema
final JsonField<BetaMcpToolParam.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 BetaMcpToolParam.Builder toBuilder()
-
validate
final BetaMcpToolParam 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 BetaMcpToolParam.Builder builder()
Returns a mutable builder for constructing an instance of BetaMcpToolParam.
The following fields are required:
.inputSchema() .name()
-
-
-
-