Class BetaResponseItem.McpListTools
-
- All Implemented Interfaces:
public final class BetaResponseItem.McpListToolsA list of tools available on an MCP server.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponseItem.McpListTools.BuilderA builder for McpListTools.
public final classBetaResponseItem.McpListTools.ToolA tool available on an MCP server.
public final classBetaResponseItem.McpListTools.AgentThe agent that produced this item.
-
Method Summary
Modifier and Type Method Description final Stringid()The unique ID of the list. final StringserverLabel()The label of the MCP server. final List<BetaResponseItem.McpListTools.Tool>tools()The tools available on the server. final JsonValue_type()The type of the item. final Optional<BetaResponseItem.McpListTools.Agent>agent()The agent that produced this item. final Optional<String>error()Error message if the server could not list tools. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<String>_serverLabel()Returns the raw JSON value of serverLabel. final JsonField<List<BetaResponseItem.McpListTools.Tool>>_tools()Returns the raw JSON value of tools. final JsonField<BetaResponseItem.McpListTools.Agent>_agent()Returns the raw JSON value of agent. final JsonField<String>_error()Returns the raw JSON value of error. final Map<String, JsonValue>_additionalProperties()final BetaResponseItem.McpListTools.BuildertoBuilder()final BetaResponseItem.McpListToolsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaResponseItem.McpListTools.Builderbuilder()Returns a mutable builder for constructing an instance of McpListTools. -
-
Method Detail
-
serverLabel
final String serverLabel()
The label of the MCP server.
-
tools
final List<BetaResponseItem.McpListTools.Tool> tools()
The tools available on the server.
-
_type
final JsonValue _type()
The type of the item. Always
mcp_list_tools.Expected to always return the following:
JsonValue.from("mcp_list_tools")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
agent
final Optional<BetaResponseItem.McpListTools.Agent> agent()
The agent that produced this item.
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_serverLabel
final JsonField<String> _serverLabel()
Returns the raw JSON value of serverLabel.
Unlike serverLabel, this method doesn't throw if the JSON field has an unexpected type.
-
_tools
final JsonField<List<BetaResponseItem.McpListTools.Tool>> _tools()
Returns the raw JSON value of tools.
Unlike tools, this method doesn't throw if the JSON field has an unexpected type.
-
_agent
final JsonField<BetaResponseItem.McpListTools.Agent> _agent()
Returns the raw JSON value of agent.
Unlike agent, this method doesn't throw if the JSON field has an unexpected type.
-
_error
final JsonField<String> _error()
Returns the raw JSON value of error.
Unlike error, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaResponseItem.McpListTools.Builder toBuilder()
-
validate
final BetaResponseItem.McpListTools 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 BetaResponseItem.McpListTools.Builder builder()
Returns a mutable builder for constructing an instance of McpListTools.
The following fields are required:
.id() .serverLabel() .tools()
-
-
-
-