WebMCP tools

This is the WebMCP tools page. The page registers add, multiply, greet, and cart tools. An agent calls them by name. The buttons run the same functions.

Registering WebMCP tools…

Registered on this WebMCP page

  • add — { a: 2, b: 40 } returns 42.
  • multiply — { a: 6, b: 7 } returns 42.
  • greet — { name: "Srini" } returns Hello, Srini.
  • cart_add — { item: "notebook", quantity: 2 }.
  • cart_summary — {} lists the cart and its total.
  • navigate — { path: "actions.html" }. go_back and go_forward take {}.

Open the WebMCP actions page

Cart

Cart is empty.

What just ran

Nothing yet.