Optional_Original MCP tool metadata.
OptionalannotationsOriginal MCP tool annotations.
OptionaldescriptionMCP tool description supplied to the model, when present.
Input schema passed to the AI SDK provider and dynamic-tool parser.
any is intentional: AI SDK v5, v6, and v7 expose incompatible
FlexibleSchema generations, while dynamic MCP tool inputs are runtime
values in all of them.
OptionalmetadataAdapter metadata retained for AI SDK/provider consumers.
OptionaltitleHuman-readable MCP tool title, when present.
Identifies this as an AI SDK runtime-generated tool.
Executes the MCP tool with model-provided arguments.
OptionalexecutionOptions: AiSdkToolExecutionOptions
An AI SDK dynamic tool backed by an MCP tool.
The
annotations,_meta, andmetadatafields are retained as MCP-side metadata. The structural type intentionally imports no AI SDK types so the client remains compatible with AI SDK v5, v6, and v7 without a dependency.