Describes and implements a specific WebMCP tool for an agent to invoke.
name
stringThe unique name of this tool.
description
string | undefinedA description of what the tool does and how the agent should consider using it.
inputSchema
InputSchemaA schema which describes the input arguments expected by the execute function
which the agent must provide.
execute
Execute<InputSchema>The callback function which implements this tool.
Jump to details