Skip to main content
Glama
AUI MCP Server

AUI MCP Server

by rpmccormick

Generate Interactive AUI Widget

aui_generate_ui
Idempotent

Converts raw JSON, CSV, SQL rows, or a public URL into an XSS-isolated interactive iframe for data tables, charts, timelines, or schedules, returning an embeddable URL.

Instructions

Transform raw JSON/CSV/SQL rows (data) or a public webpage (url) into an XSS-isolated interactive AUI iframe, returning { success, embed_url, cache_id, cached }. Engines (ui_type): 'dt' (2-line DataTables with facets, child drawers & CSV export), 'cg' (Apache ECharts bar/line/pie/radar/scatter), 'tl' (Omni-Time V3 60fps timeline + synced list), 'dp' (DayPilot 2D resource schedule), or 'auto'. Pass data or url (data takes precedence if both are set). Zero-key calls run free <50ms deterministic synthesis (0 credits); passing a trial-... or svsrva-key-... runs Gemini semantic layout (1 credit on cache miss, 0 on deterministic MD5 cache hit; 120 req/15m per-IP limit). Embed embed_url directly in chat/HTML, or pass cache_id to aui_get_status (inspect/reuse) or aui_share_widget (out-of-band SMS/email).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "aui_generate_ui"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoPublic HTTPS webpage URL to scrape and structure when `data` is omitted.
dataNoJSON array, object, or CSV string of records/events to visualize. Takes precedence over `url` when both are supplied.
themeNoVisual theme for the embedded iframe ('dark' or 'light').dark
promptNoOptional natural-language title, grouping, or layout instruction.
actionsNoOptional row/event postMessage action button specs (e.g. `[{action_name:'openRecord', id_column:'id', label:'Inspect'}]`).
ui_typeNoTarget AUI engine: 'auto' (inspects payload shape), 'dt' (DataTable), 'cg' (ECharts), 'tl' (Omni-Time timeline), or 'dp' (DayPilot resource tape).auto
chart_typeNoChart subtype used only when `ui_type` resolves to `'cg'`.auto
aui_api_keyNoOptional `trial-...` or `svsrva-key-...` credential (falls back to `Authorization: Bearer` header, or free deterministic sandbox if omitted).
gemini_api_keyNoOptional BYOK Google Gemini key (`AIza...`) for one-off AI layout without a provisioned AUI key.

Output Schema

NameRequiredDescriptionDefault
errorNoError message when `success` is false (e.g. invalid key, depleted credits, or unreachable URL).
cachedNoTrue when served directly from deterministic cache with zero credit deduction.
successYesTrue when the widget was generated or retrieved from deterministic cache.
cache_idNoDeterministic widget identifier (`chk_...`) for `aui_get_status` or `aui_share_widget`.
embed_urlNoPublic HTTPS iframe URL (`https://svsrva.com/aui/v2/embed.html?id=chk_...`).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.6.3

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations declare readOnly=false, openWorld=true, idempotent=true, destructive=false, and the description goes well beyond them: XSS isolation, latency (<50ms), cost model (1 credit on cache miss, 0 on deterministic MD5 hit), rate limit (120 req/15m per-IP), and key fallback order (param → Bearer header → free sandbox). These are exactly the operational traits an agent needs before spending credits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core transform and return shape, then modalized by engine, then by cost/auth — a sensible information order. It is dense and backtick-heavy to the point of being a wall of text, but nearly every clause carries distinct operational weight, so little is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 9-parameter, zero-required, open-world generation tool with an output schema already present, the description covers the remaining risks: which input wins, what each engine yields, what a call costs, how caching works, and where to go next. Nothing an agent needs in order to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema baseline is 3; the description still adds real meaning by explaining what each engine letter produces ('dt' with facets/drawers/CSV export, 'cg' chart families, 'tl' 60fps timeline, 'dp' resource schedule) and by clarifying that `data` wins over `url`. It does not touch `theme`, `prompt`, `actions`, or `chart_type`, but the schema documents those adequately.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: transform raw JSON/CSV/SQL rows or a public webpage into an XSS-isolated interactive AUI iframe, and enumerates the concrete engines behind `ui_type`. An agent can distinguish this from `aui_share_widget` and `aui_get_status` without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly resolves the `data` vs `url` choice and its precedence, distinguishes the free deterministic path (zero-key, 0 credits) from the paid LLM path (`trial-...` / `svsrva-key-...`, 1 credit), and routes follow-up work to `aui_get_status` (inspect/reuse via `cache_id`) and `aui_share_widget` (out-of-band delivery). That is when-to-use plus named alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.