Datahub data apps

From infometa/workbuddyskills · View interactive version

Datahub data apps is an AI agent skill from the GitHub repository infometa/workbuddyskills. Discover, inspect, run, monitor, cancel, and retrieve results from DataHub Data Apps while preserving billing and retry safety.

How to use this skill

Skill file

DataHub Data Apps

Use this Skill when the user wants to discover a Data App, understand its inputs or price, execute it, inspect current or historical runs, cancel a run, or retrieve structured results.

Reply in the user's language. Keep Data App IDs/slugs, run IDs, field names, enum values, prices, currencies, timestamps, and platform error messages exact.

Available Base Tools

| Tool | Use it for |

| --- | --- |

| search_data_apps | Discover visible Data Apps by intent, type, or scope |

| get_data_app_details | Inspect input/output schemas, execution behavior, pricing, knowledge, and examples |

| run_data_app | Create a potentially billable run |

| get_run_status | Read or long-poll one run's status and cost |

| get_run_result | Page and project structured results |

| cancel_run | Request cancellation of an active run |

| list_runs | Find recent runs, recover a run ID, or summarize run history |

Treat the live tool schemas as authoritative. The root endpoint exposes the seven tools above; do not assume the retired ?tools= routing behavior.

Discovery and Selection

  1. If the user did not provide an exact app ID or slug, call search_data_apps with a short intent-oriented query.
  2. Use type=data for collection/extraction and type=transform for processing existing data when the intent makes the distinction clear. Otherwise omit the type.
  3. Default to scope=all. Use a narrower scope only when the user asks for public, private, or shared apps.
  4. Use the smallest useful page; limit cannot exceed 20.
  5. If several apps match, compare relevance, description, availability, and pricing information. Ask the user to choose only when the choice materially changes inputs, cost, or output.
  6. Never launch a card whose accepting_runs value is false.

Inspect Before Running

Call get_data_app_details before the first run in the conversation unless all of these are already known from fresh tool output:

Map the user's words to the declared input schema. Never guess a required value. Preserve explicit zero, false, empty arrays, and enum spelling. Explain only missing or invalid fields that block the call.

If pricing is nonzero and the user has not already authorized this exact app, input, and quantity bound, show the known price/billing basis and request confirmation before calling run_data_app.

Starting Runs

run_data_app accepts app, input, optional max_records, and optional wait_seconds. The live tool schema is authoritative; wait_seconds is currently bounded to 0-60 seconds.

run_data_app has no exposed idempotency key. Never automatically retry it after a timeout, disconnect, 5xx, or any response where acceptance is uncertain.

Ambiguous Run Recovery

  1. Call list_runs for the same app, triggered_by=mcp, and a narrow creation-time window around the attempted call.
  2. Compare timestamps, app identity, status, run kind, and any returned metadata.
  3. If exactly one run is an unambiguous match, continue with that run_id and tell the user it was recovered.
  4. If zero or multiple runs could match, explain the ambiguity and ask before creating another potentially billable run.

This lookup reduces duplicate risk but is not atomic idempotency. Never claim otherwise.

Monitoring and Results

Use get_run_status(run_id, wait_seconds=0) for an immediate check. Use up to 60 seconds only when the user is waiting for completion. Do not create many simultaneous long polls for one run.

Recognize the live status enum. Treat SUCCEEDED, PARTIALLY_SUCCEEDED, FAILED, and CANCELLED as terminal when the schema reports them. For terminal runs, report the final status, counts, timestamps, and platform-reported cost when present.

Use get_run_result only when results are available:

Use list_runs to answer history questions, recover lost IDs, and compare recent costs. Apply the narrowest known filters. Its limit cannot exceed 50.

Cancellation

Cancellation is a side effect. If the user did not explicitly request cancellation, confirm the exact run_id first. Call cancel_run once. If completion races with cancellation, report the platform's returned/current terminal state and do not repeatedly cancel.

Error Handling

Response Shape

For a completed workflow, return a compact summary containing:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.