en un clic
data-cards
Data Cards tools for Dataspheres AI
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Menu
Data Cards tools for Dataspheres AI
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Basé sur la classification professionnelle SOC
Local dev skill for the Dataspheres AI Content API. Wraps /api/v1/ REST endpoints for local-to-production content workflows. Use when the user wants to push pages, generate release notes from git log, list pages, or update content in a datasphere from their local machine.
Full newsletter lifecycle — create, configure all settings (frequency, personalization, AI model, web search, reply threading, plan mode wiring), manage subscribers, attach forms, draft and manage issues, preview personalized letters, enable private chat and email replies, and test in dev.
Drive the Dataspheres AI platform from Claude Code — read conversation history, post messages as the user (via API key), poll for ARI replies, read the Reality Engine debug log, update the plan and outcomes, and control orchestration flow. Use when you need Claude Code to interact with ARI or inspect/modify a running reality session.
Knowledge-graph tools for Dataspheres AI — build typed graphs, relate nodes with VISUAL or executable TASK edges, group into colored container bubbles, auto-detect article hero images, embed graphs in pages, run scheduled searches, and report.
Sequencers tools for Dataspheres AI
Manage Kanban tasks, plan modes, and project workflows in Dataspheres AI
| name | data_cards |
| description | Data Cards tools for Dataspheres AI |
Tool reference for this resource group, mirrored by hand from the platform live
/api/mcp/schemaschema.
create_data_card — New Data CardCreates a live data card (chart) for a dataset. The server computes a shadow view of the dataset, picks real columns from it based on your prompt + the template's contract, runs the LLM to generate the query, validates it, and creates the card.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ HIL FLOW (CRITICAL — same as every other create_* tool, NO shortcuts)
create_data_card MUST follow the standard collecting → confirming → executing flow. Do NOT skip the confirming step. Do NOT set phase='executing' on your first emit. Do NOT auto-fire it because "the server can build it in one round trip". The user always sees the preview card and clicks Approve FIRST, then the build runs.
Step-by-step:
If you set phase='executing' before the user has explicitly approved, the server will REFUSE the bypass and force you back to 'confirming' — and the user will see your attempted shortcut as a regression. Don't do it. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
━━━ AVAILABLE TEMPLATES ━━━ TRENDS (need a date column):
RANKINGS (need a category column):
COMPOSITION (need a low-cardinality category):
RELATIONSHIPS (need 2-3 numerics):
SNAPSHOTS (single number):
FLOW (need 2 categories):
━━━ WHEN TO CALL ━━━
━━━ CHECK THE DATA SHAPE BEFORE PICKING A TEMPLATE ━━━ The biggest failure mode is picking a chart whose data shape isn't supported by the dataset. Before calling create_data_card, look at the RealityEngine cache entities (or call list_data_cards + list_datasets) and reason about:
How many rows does the dataset have?
How many distinct values does each column have?
What's the numeric column count?
Is there time AND quantity?
━━━ WIDE vs LONG FORMAT — CRITICAL FOR MULTI-LINE CHARTS ━━━ multi_trend and stacked_area require LONG-format data: one row per (date, category) pair — a "Stat Type" column holds the series name and a single "Value" column holds the number.
Most user datasets are WIDE-format: one row per entity/date, separate columns for each metric (e.g. "Season", "Points", "Assists", "Rebounds"). multi_trend CANNOT work on wide-format data.
You have NO tool to transform existing rows. update_dataset can add a schema column but CANNOT migrate data. Do NOT offer to "reshape", "pivot", or "restructure" existing rows — you cannot execute that operation.
When the user wants to compare multiple metrics from a wide-format dataset:
━━━ BUILD A VARIETY, NOT 3 BAR CHARTS ━━━ When the user asks for "a few charts" or "some data cards", vary the chart types. A strong starter set for a rich dataset:
Don't build 3 bar charts of the same data. Don't build a pie chart AND a donut of the same column. Each chart should answer a DIFFERENT question.
━━━ SERVER WILL REJECT BAD FITS ━━━ If you pick a template whose data shape isn't supported (e.g. trend_line on 3 dates), the server's viability pre-check will reject it with { ok: false, reason, missing, suggestedFix } BEFORE the LLM call. Trust those errors — they tell you exactly what's wrong and how to fix it (usually by picking a different template or adding more rows).
━━━ HUMAN-IN-THE-LOOP ━━━
requiresConfirmation: true handles this automatically.━━━ ON FAILURE ━━━
The server may return { ok: false, reason, alternative: {...} } when the picked template can't be built from the current dataset. In that case the alternative is a CONCRETE working card (full query + template + name). Surface it to the user with "this didn't fit, but here's one that does" and ask if they want to accept it.
Response on success: { ok: true, card: { id, name, description, vizType, datasetId, datasphereId, query, queryResults, vizConfig } }
The returned card.id is immediately usable in a dataCard HTML node via:
━━━ AUTO-CHAIN ━━━ After creating a data card, offer the next logical step:
| Field | Type | Required | Description |
|---|---|---|---|
datasphereUri | string | yes | Datasphere URI slug |
datasetId | string | no | Dataset id the card pulls from. Optional — if omitted, the server auto-picks the most recently updated dataset in the datasphere. Only omit when the user clearly means "the latest one". |
templateId | string | yes | One of: trend_line, multi_trend, stacked_area, top_rankings, category_comparison, bottom_rankings, entity_leaderboard, donut_breakdown, simple_pie, treemap_composition, correlation_scatter, bubble_chart, kpi_metric, average_value, progress_ring, sankey_flow, funnel_chart. Use entity_leaderboard when the user wants to see individual entities (people, companies, products) ranked by a metric — NOT categories counted or summed. |
prompt | string | yes | Plain-English description of what the card should show — e.g. "top categories by event count" or "participants over time by region". The server uses the shadow view + this prompt to generate the formula. |
list_data_cards — Data CardsLists data cards (live charts) within the CURRENT datasphere. Always scoped — this endpoint physically cannot return cards from another datasphere because the server filters by dataset.datasphereId. Use this BEFORE create_page or update_page when the user wants a page that includes existing visualizations — you get the card ids you need to embed them via the dataCard node.
SCOPE RULES (CRITICAL):
WHEN TO CALL:
RESPONSE FIELDS (each card has):
AFTER CALLING:
Returns: { cards: [...], datasphereId, datasphereUri, total }
| Field | Type | Required | Description |
|---|---|---|---|
datasphereUri | string | yes | Datasphere URI slug (e.g. "carlos-rodriguez"). MUST be the CURRENT datasphere the user is working in — read it from the URL (/app/{uri}/...) or screen context, never from a different datasphere. |
datasetId | string | no | Optional — narrow results to a single dataset. Pass this when the user is on /app/{uri}/datasets/{datasetId}/edit and asks ARI to do something with "this dataset's cards". Cross-datasphere filtering is still enforced server-side. |