Skip to content

Bedrock Agentcore Control  >  Structures  >  ToolDefinition

ToolDefinition

Structure Class

ToolDefinition dataclass

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

Attributes

description instance-attribute
description: str

The description of the tool. This description provides information about the purpose and usage of the tool.

input_schema instance-attribute
input_schema: SchemaDefinition

The input schema for the tool. This schema defines the structure of the input that the tool accepts.

name instance-attribute
name: str

The name of the tool. This name identifies the tool in the Model Context Protocol.

output_schema class-attribute instance-attribute
output_schema: SchemaDefinition | None = None

The output schema for the tool. This schema defines the structure of the output that the tool produces.