Class BetaMcpToolParam.Builder
-
- All Implemented Interfaces:
public final class BetaMcpToolParam.BuilderA builder for BetaMcpToolParam.
-
-
Method Summary
-
-
Method Detail
-
inputSchema
final BetaMcpToolParam.Builder inputSchema(BetaMcpToolParam.InputSchema inputSchema)
The tool's input schema as the MCP server lists it, verbatim.
-
inputSchema
final BetaMcpToolParam.Builder inputSchema(JsonField<BetaMcpToolParam.InputSchema> inputSchema)
Sets Builder.inputSchema to an arbitrary JSON value.
You should usually call Builder.inputSchema with a well-typed InputSchema value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
name
final BetaMcpToolParam.Builder name(String name)
The tool's name as the MCP server lists it (not prefixed with the server name).
-
name
final BetaMcpToolParam.Builder name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
description
final BetaMcpToolParam.Builder description(String description)
The tool's description as the MCP server lists it.
-
description
final BetaMcpToolParam.Builder description(Optional<String> description)
Alias for calling Builder.description with
description.orElse(null).
-
description
final BetaMcpToolParam.Builder description(JsonField<String> description)
Sets Builder.description to an arbitrary JSON value.
You should usually call Builder.description with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaMcpToolParam.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaMcpToolParam.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaMcpToolParam.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaMcpToolParam.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaMcpToolParam.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaMcpToolParam build()
Returns an immutable instance of BetaMcpToolParam.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.inputSchema() .name()
-
-
-
-