Validation
Plan a WebAssembly component deployment: wac-style link graph and plug commands, WASI Preview 2 support across five runtimes, JSPI flags, and size / cold-start / TTFB / memory budgets.
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/wasm-wasi-component-model-jspi-wasi-copilot-perf-budget-and-link-rule-planner' \
-H 'Content-Type: application/json' \
-d '{"components":"api-gateway, wasi:http/[email protected] wasi:keyvalue/[email protected], wasi:http/[email protected], 850\nauth-plug, -, wasi:http/[email protected], 220\nkv-cache, -, wasi:keyvalue/[email protected], 150","targetRuntimes":["wasmtime","v8"],"requiredInterfaces":["wasi-http-proxy","wasi-keyvalue"],"useJspi":true,"streamingResponses":true,"expectedInstances":100,"instanceMemoryMb":16,"sizeBudgetKb":2048,"coldStartBudgetMs":50,"ttfbBudgetMs":100}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/wasm-wasi-component-model-jspi-wasi-copilot-perf-budget-and-link-rule-planner| Name | Type | Required | Description |
|---|---|---|---|
| components | textarea | Yes | — |
| targetRuntimes | select | Yes | — |
| requiredInterfaces | select | No | — |
| useJspi | checkbox | No | — |
| streamingResponses | checkbox | No | — |
| expectedInstances | number | Yes | — |
| instanceMemoryMb | number | Yes | — |
| sizeBudgetKb | number | Yes | — |
| coldStartBudgetMs | number | Yes | — |
| ttfbBudgetMs | number | Yes | — |
HTML result
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-wasm-wasi-component-model-jspi-wasi-copilot-perf-budget-and-link-rule-planner": {
"name": "wasm-wasi-component-model-jspi-wasi-copilot-perf-budget-and-link-rule-planner",
"description": "Plan a WebAssembly component deployment: wac-style link graph and plug commands, WASI Preview 2 support across five runtimes, JSPI flags, and size / cold-start / TTFB / memory budgets.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=wasm-wasi-component-model-jspi-wasi-copilot-perf-budget-and-link-rule-planner",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "wasm-wasi-component-model-jspi-wasi-copilot-perf-budget-and-link-rule-planner",
"arguments": {
"components": "api-gateway, wasi:http/[email protected] wasi:keyvalue/[email protected], wasi:http/[email protected], 850\nauth-plug, -, wasi:http/[email protected], 220\nkv-cache, -, wasi:keyvalue/[email protected], 150",
"targetRuntimes": [
"wasmtime",
"v8"
],
"requiredInterfaces": [
"wasi-http-proxy",
"wasi-keyvalue"
],
"useJspi": true,
"streamingResponses": true,
"expectedInstances": 100,
"instanceMemoryMb": 16,
"sizeBudgetKb": 2048,
"coldStartBudgetMs": 50,
"ttfbBudgetMs": 100
}
}
}Questions or issues? Contact [email protected]