Class BetaMcpToolset
-
- All Implemented Interfaces:
public final class BetaMcpToolsetConfiguration for a group of tools from an MCP server.
Allows configuring enabled status and defer_loading for all tools from an MCP server, with optional per-tool overrides.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaMcpToolset.BuilderA builder for BetaMcpToolset.
public final classBetaMcpToolset.ConfigsConfiguration overrides for specific tools, keyed by tool name
-
Method Summary
Modifier and Type Method Description final StringmcpServerName()Name of the MCP server to configure tools for final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("mcp_toolset")final Optional<BetaCacheControlEphemeral>cacheControl()Create a cache control breakpoint at this content block. final Optional<BetaMcpToolset.Configs>configs()Configuration overrides for specific tools, keyed by tool name final Optional<BetaMcpToolDefaultConfig>defaultConfig()Default configuration applied to all tools from this server final JsonField<String>_mcpServerName()Returns the raw JSON value of mcpServerName. final JsonField<BetaCacheControlEphemeral>_cacheControl()Returns the raw JSON value of cacheControl. final JsonField<BetaMcpToolset.Configs>_configs()Returns the raw JSON value of configs. final JsonField<BetaMcpToolDefaultConfig>_defaultConfig()Returns the raw JSON value of defaultConfig. final Map<String, JsonValue>_additionalProperties()final BetaMcpToolset.BuildertoBuilder()final BetaMcpToolsetvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaMcpToolset.Builderbuilder()Returns a mutable builder for constructing an instance of BetaMcpToolset. -
-
Method Detail
-
mcpServerName
final String mcpServerName()
Name of the MCP server to configure tools for
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("mcp_toolset")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
cacheControl
final Optional<BetaCacheControlEphemeral> cacheControl()
Create a cache control breakpoint at this content block.
-
configs
final Optional<BetaMcpToolset.Configs> configs()
Configuration overrides for specific tools, keyed by tool name
-
defaultConfig
final Optional<BetaMcpToolDefaultConfig> defaultConfig()
Default configuration applied to all tools from this server
-
_mcpServerName
final JsonField<String> _mcpServerName()
Returns the raw JSON value of mcpServerName.
Unlike mcpServerName, this method doesn't throw if the JSON field has an unexpected type.
-
_cacheControl
final JsonField<BetaCacheControlEphemeral> _cacheControl()
Returns the raw JSON value of cacheControl.
Unlike cacheControl, this method doesn't throw if the JSON field has an unexpected type.
-
_configs
final JsonField<BetaMcpToolset.Configs> _configs()
Returns the raw JSON value of configs.
Unlike configs, this method doesn't throw if the JSON field has an unexpected type.
-
_defaultConfig
final JsonField<BetaMcpToolDefaultConfig> _defaultConfig()
Returns the raw JSON value of defaultConfig.
Unlike defaultConfig, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaMcpToolset.Builder toBuilder()
-
validate
final BetaMcpToolset 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 BetaMcpToolset.Builder builder()
Returns a mutable builder for constructing an instance of BetaMcpToolset.
The following fields are required:
.mcpServerName()
-
-
-
-