

# ToolSchema
<a name="API_ToolSchema"></a>

A tool schema for a gateway target. This structure defines the schema for a tool that the target exposes through the Model Context Protocol.

## Contents
<a name="API_ToolSchema_Contents"></a>

**Important**  
This data type is a UNION, so only one of the following members can be specified when used or returned.

 ** inlinePayload **   <a name="bedrockagentcorecontrol-Type-ToolSchema-inlinePayload"></a>
The inline payload of the tool schema. This payload contains the schema definition directly in the request.  
Type: Array of [ToolDefinition](API_ToolDefinition.md) objects  
Required: No

 ** s3 **   <a name="bedrockagentcorecontrol-Type-ToolSchema-s3"></a>
The Amazon S3 location of the tool schema. This location contains the schema definition file.  
Type: [S3Configuration](API_S3Configuration.md) object  
Required: No

## See Also
<a name="API_ToolSchema_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/bedrock-agentcore-control-2023-06-05/ToolSchema) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/bedrock-agentcore-control-2023-06-05/ToolSchema) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/bedrock-agentcore-control-2023-06-05/ToolSchema) 