Skip to main content

Supported Types

Basic Types

Python TypeJSON SchemaExample
str{"type": "string"}"hello"
int{"type": "integer"}42
float{"type": "number"}3.14
bool{"type": "boolean"}true

Complex Types

Python TypeJSON SchemaExample
list{"type": "array"}[1, 2, 3]
dict{"type": "object"}{"key": "value"}
Optional[T]Same as TNone or value

Tool Type Examples

String Parameter

Optional Parameter

Return Types

Tools should return dict: