Skip to content

ToolDefinitionDict

Dictionary Type

ToolDefinitionDict

Bases: TypedDict

Dictionary form of ToolDefinition.

Attributes

description instance-attribute
description: Required[str]

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

input_schema instance-attribute

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

name instance-attribute
name: Required[str]

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

output_schema instance-attribute
output_schema: SchemaDefinition | SchemaDefinitionDict | None

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