The idea

How agents use your application’s tools

You want to know what happens between the tools your page registers and the answer a person gets. This is the whole path, and what each part of it is in the product.

Your application exposes tools; an agent calls them

Each web application that declares its operations through WebMCP exposes them as tools, in the tab where it is open. XataWorks discovers those tools, and an agent in one chat can reach every open tab — one application at a time, or several in one piece of work.

Each part of the picture is something in the product:

  • The browser is XataWorks’ built-in browser. Every open tab has an id, and a chat can address any of them.
  • Your application is a web application, open in a tab, that has registered WebMCP tools.
  • A call is an agent calling a tool in a tab. The tool runs in the page, in the person’s signed-in session on that site.
  • The agent is its instructions and skills, reaching every tab from one chat.
  • The person decides. Nothing reaches a site until they allow it, as narrowly as they choose.

What can expose tools

Any page that registers WebMCP tools. Yours, once you have added a few lines to it — Hello, WebMCP shows how. For some widely used sites that do not declare tools themselves, XataWorks ships adapters that declare tools on the site’s behalf — Zendesk, Jira, Slack, Shopify, Grafana and Gmail among them. Your application needs no adapter: it declares its own tools, which means you decide what they are called, what they do, and how they describe themselves.

How an agent reaches them

The agent works through three browser tools: one lists the open tabs, one lists the WebMCP tools a tab has published, and one calls a tool in a tab. Because a call names the tab it is for, one chat can call tools in several tabs — on several sites — in the course of one request.

A worked example

Two small example applications are hosted with this guide. Orders knows orders and their tracking numbers. Shipping knows shipments by tracking number. Neither knows the other exists.

Open both in XataWorks and ask: “Has order A-1002 shipped, and when will it arrive?” The agent finds the order in one tab, reads its tracking number, finds the shipment in the other tab, and answers from both. The join between the two applications happens in the agent, not in either application — Two apps, one agent shows the whole run.

The person decides

The first time an agent in a chat wants a site’s tools, the person is asked, and chooses how much to allow: one call, the site’s read-only tools, its tools that change things, or all of them. Operations above what they allowed are confirmed one call at a time. The permissions articles show every question and every answer.

Not tied to XataWorks

WebMCP is an open standard. The tools you declare belong to your page, not to XataWorks: any client that supports the standard can discover them the same way. XataWorks is where this section builds, tests and uses them.

What makes your tools work well