Class DatabaseToolsMcpToolsetCustomSqlTool
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolset
-
- com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetCustomSqlTool
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20201005") public final class DatabaseToolsMcpToolsetCustomSqlTool extends DatabaseToolsMcpToolsetAllows the creation, configuration and management of an McpToolset.
Note: Objects should always be created or deserialized using theDatabaseToolsMcpToolsetCustomSqlTool.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of theDatabaseToolsMcpToolsetCustomSqlTool.Builder, which maintain a set of all explicitly set fields calledDatabaseToolsMcpToolsetCustomSqlTool.Builder.__explicitlySet__. ThehashCode()andequals(Object)methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDatabaseToolsMcpToolsetCustomSqlTool.Builder
-
Constructor Summary
Constructors Constructor Description DatabaseToolsMcpToolsetCustomSqlTool(String id, Integer version, String compartmentId, String displayName, String description, String databaseToolsMcpServerId, DatabaseToolsMcpToolsetLifecycleState lifecycleState, String lifecycleDetails, Date timeCreated, Date timeUpdated, Map<String,Map<String,Object>> definedTags, Map<String,String> freeformTags, Map<String,Map<String,Object>> systemTags, List<ResourceLock> locks, String toolName, String toolDescription, DatabaseToolsCustomSqlToolToolsetSource source, List<DatabaseToolsMcpToolsetCustomSqlToolVariable> variables, List<String> allowedRoles, DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DatabaseToolsMcpToolsetCustomSqlTool.Builderbuilder()Create a new builder.booleanequals(Object o)List<String>getAllowedRoles()The roles granted access to the MCP tool generated by this toolsetDatabaseToolsMcpToolsetDefaultExecutionTypegetDefaultExecutionType()The default execution type for the toolset.DatabaseToolsCustomSqlToolToolsetSourcegetSource()StringgetToolDescription()Instructions describing how to use the MCP toolset and its features.StringgetToolName()Name of the tool returned by the MCP ServerList<DatabaseToolsMcpToolsetCustomSqlToolVariable>getVariables()The variables to use with the queryinthashCode()DatabaseToolsMcpToolsetCustomSqlTool.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.-
Methods inherited from class com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolset
getCompartmentId, getDatabaseToolsMcpServerId, getDefinedTags, getDescription, getDisplayName, getFreeformTags, getId, getLifecycleDetails, getLifecycleState, getLocks, getSystemTags, getTimeCreated, getTimeUpdated, getVersion
-
-
-
-
Constructor Detail
-
DatabaseToolsMcpToolsetCustomSqlTool
@Deprecated public DatabaseToolsMcpToolsetCustomSqlTool(String id, Integer version, String compartmentId, String displayName, String description, String databaseToolsMcpServerId, DatabaseToolsMcpToolsetLifecycleState lifecycleState, String lifecycleDetails, Date timeCreated, Date timeUpdated, Map<String,Map<String,Object>> definedTags, Map<String,String> freeformTags, Map<String,Map<String,Object>> systemTags, List<ResourceLock> locks, String toolName, String toolDescription, DatabaseToolsCustomSqlToolToolsetSource source, List<DatabaseToolsMcpToolsetCustomSqlToolVariable> variables, List<String> allowedRoles, DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType)
Deprecated.
-
-
Method Detail
-
builder
public static DatabaseToolsMcpToolsetCustomSqlTool.Builder builder()
Create a new builder.
-
toBuilder
public DatabaseToolsMcpToolsetCustomSqlTool.Builder toBuilder()
-
getToolName
public String getToolName()
Name of the tool returned by the MCP Server- Returns:
- the value
-
getToolDescription
public String getToolDescription()
Instructions describing how to use the MCP toolset and its features.This can be used to improve the LLM’s understanding of the tool.
- Returns:
- the value
-
getSource
public DatabaseToolsCustomSqlToolToolsetSource getSource()
-
getVariables
public List<DatabaseToolsMcpToolsetCustomSqlToolVariable> getVariables()
The variables to use with the query- Returns:
- the value
-
getAllowedRoles
public List<String> getAllowedRoles()
The roles granted access to the MCP tool generated by this toolset- Returns:
- the value
-
getDefaultExecutionType
public DatabaseToolsMcpToolsetDefaultExecutionType getDefaultExecutionType()
The default execution type for the toolset.The default value is SYNCHRONOUS.
To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured.
- Returns:
- the value
-
toString
public String toString()
- Overrides:
toStringin classDatabaseToolsMcpToolset
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Overrides:
toStringin classDatabaseToolsMcpToolset- Parameters:
includeByteArrayContents- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classDatabaseToolsMcpToolset
-
hashCode
public int hashCode()
- Overrides:
hashCodein classDatabaseToolsMcpToolset
-
-