AI tool generation
WebMCP Generator
Generate WebMCP tools from your URL. AI reads your real pages and writes the schemas and code, so agents can search, filter and act on your site.
How to generate WebMCP tools
- 1
Paste your URL
Add your site in the dashboard. Nothing to install yet.
- 2
The generator reads your pages
It visits your homepage and up to 5 pages from different sections of your site, found through your sitemap or links, and pulls out the forms, buttons, frameworks and JavaScript globals on each one.
- 3
AI writes the tools
A language model proposes tool definitions for each page: name, description, input schema and executeJs. Near-duplicates are merged, and the rest are ranked by how useful they are to an agent.
- 4
You review, test and save
Each suggestion shows the page it came from. Save it, edit it first, or test it against your real site to see what an agent would get back.
- 5
Go live with one script tag
Paste the snippet once. Saved tools register on the right pages in every major browser, and every call an agent makes shows up in your dashboard.
A run takes 15 to 40 seconds and continues in the background if you close the tab. For the details of what the crawler looks at and why, read how Aigentably generates WebMCP tools from a URL.
What a generated tool looks like
Each suggestion is a complete WebMCP tool definition. This is an example of the shape the generator produces for a store's search page:
{
name: "searchProducts",
description: "Search the catalog by keyword. Returns title, price and URL for each match.",
inputSchema: {
type: "object",
properties: {
query: { type: "string", description: "What the shopper is looking for" },
maxResults: { type: "number", description: "How many results to return (default 5)" }
},
required: ["query"]
},
// executeJs: the code that runs in the page when an agent calls the tool
executeJs: `const res = await fetch('/search?q=' + encodeURIComponent(args.query) + '&view=json')
...`
}Aigentably registers it through document.modelContext.registerTool() on the pages it applies to. The execute code is checked by a security linter before you save. For hand-written patterns, see the WebMCP implementation examples.
Free tools from your schema.org markup
If your pages already carry schema.org JSON-LD for Google, most of a read-only tool is already written. Aigentably turns that markup into tools without calling an AI model, on every plan:
- Product → getProductInfo
- Article / BlogPosting → getArticleInfo
- FAQPage → getFAQAnswer
- Recipe → getRecipeInfo
- Event → getEventInfo
- LocalBusiness → getBusinessInfo
- JobPosting → getJobInfo
More on this in turn your schema.org markup into WebMCP tools.
Generator, hand-written code, or codegen?
| Approach | Starts from | Effort | Best for |
|---|---|---|---|
| Aigentably generator | Your live site's URL | Minutes, no code changes | Any site, including ones you can't redeploy easily |
| Hand-written registerTool() | Your source code | Hours per tool, plus a deploy | Teams who own the frontend and want full control |
| Codegen from an OpenAPI spec | An API contract | Setup plus a build step | Apps that already have a documented API |
These aren't exclusive. Tools you write by hand live next to generated ones, and the generator is told about your existing tools so it fills gaps instead of repeating them.
After generation: test, track, score
- Test on your real site: Run any tool against your live pages before agents can see it.
- See every agent call: Calls, success rate, latency and which agent made them.
- Track your agentic browsing score: Chrome Lighthouse's agentic browsing audit, run weekly or on demand.
Frequently asked questions
What is a WebMCP generator?
A WebMCP generator writes the tool definitions a website registers with document.modelContext.registerTool(): the tool name, a description an AI agent can understand, a JSON input schema, and the code that runs when an agent calls the tool. Aigentably's generator does this by reading your live pages, so you don't have to hand-write registerTool() calls.
Do I need to give Aigentably access to my code?
No. The generator only reads the public pages of your site, the same way a visitor's browser does. The generated tools are hosted by Aigentably and loaded onto your pages with one script tag, so there is no repository access and no build step.
Which websites does it work on?
Any site that serves pages to a browser: plain HTML, WordPress, Webflow, Shopify, or a React, Vue or Next.js app. Pages that only render in the browser are loaded in a real browser before they're analyzed. Shopify stores can also connect with one click instead of pasting the script tag.
How many pages does the generator read?
The homepage plus up to 5 pages it discovers through your sitemap or links, picked to cover different sections such as products, cart, checkout, search and account pages. You can also name up to 10 pages yourself. The crawl is cached for 24 hours; Force refresh re-crawls immediately.
Can I edit the generated tools?
Yes. Every suggestion can be saved as-is or opened in the editor first. You can change the description, the input schema and the executeJs code, limit the tool to certain pages with a path pattern, and test it on your real site before it goes live.
Does the generator respect robots.txt?
Yes. The crawler identifies itself as Aigentably-Bot and honors Disallow rules for User-agent: * and User-agent: Aigentably-Bot on pages it discovers on its own. It only runs when the site owner asks for a generation, never on a schedule.
How much does it cost?
The Free plan includes one AI generation and shows the two most useful tools from it. Pro (€19/month) includes 20 generations every 30 days with every suggestion unlocked. Tools built from your schema.org markup are free on every plan and don't use a generation.
Generate your first WebMCP tools
Free plan, no credit card. New to WebMCP? Start with what WebMCP is.
Start for free