You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MCP tools can include metadata that provides additional information about the tool's characteristics, which can be useful when [filtering tools][pydantic_ai.toolsets.FilteredToolset]. The `meta`, `annotations`, and `output_schema` fields can be found on the `metadata` dict on the [`ToolDefinition`][pydantic_ai.tools.ToolDefinition] object that's passed to filter functions.
324
+
321
325
## Custom TLS / SSL configuration
322
326
323
327
In some environments you need to tweak how HTTPS connections are established –
See the [tools documentation](../deferred-tools.md#human-in-the-loop-tool-approval) for more info.
489
494
"""
490
495
496
+
metadata: dict[str, Any] |None=None
497
+
"""Tool metadata that can be set by the toolset this tool came from. It is not sent to the model, but can be used for filtering and tool behavior customization.
498
+
499
+
For MCP tools, this contains the `meta`, `annotations`, and `output_schema` fields from the tool definition.
0 commit comments