Agent Skill · Landbase

workflow-transform

Run custom SQL against a Landbase dataset (uploaded CSV, search result, or pipeline output) to filter, reshape, or derive new columns. The SQL operates on the columns in the input dataset.

Provider: Landbase Path in repo: tools/workflow-transform/SKILL.md

Skill body

Workflow Transform

Runs custom SQL against a Landbase dataset — an uploaded CSV, search result, or pipeline output. The SQL operates on the columns in the input dataset (use datasets fields to see what’s available). The result is a new child dataset.

Run

Inline SQL:

landbase-cli workflow transform ds-XXXX \
  --sql="SELECT company_name, industry, employees_count FROM input_dataset WHERE hq_country = 'US'" \
  --wait

SQL from a file:

landbase-cli workflow transform ds-XXXX --sql-file=./query.sql --wait

Flags

Flag Notes
--sql="<query>" Inline SQL string
--sql-file=<path> Path to a .sql file for complex queries
--wait Always — blocks until the workflow completes

Use --sql-file for anything beyond a simple SELECT — multiline SQL with CTEs, JOINs, or subqueries is easier to maintain in a file.

Discovering available columns

Before writing SQL, check what columns are available in the dataset:

landbase-cli datasets fields ds-XXXX

The table name in SQL is always input_dataset.

Getting the result

Transform writes a new dataset; the finished run names it in output_dataset_id:

DS=$(landbase-cli workflow transform ds-XXXX --sql-file=./q.sql --wait \
  | jq -r '.poll.run.output_dataset_id')
landbase-cli datasets download "$DS" results.zstd.parquet

Without --wait: workflow status ds-XXXX --run=<run-id>.[0].output_dataset_id once SUCCEEDED. Falling back to datasets lineage needs --workflow=dataset_transform — there is no transform alias.

Common use cases

When to use this instead of –mode=research

workflow transform runs SQL over datasets you already own — the primary way to refine a search --mode=default pool (or an uploaded dataset) without paying the credit cost of a --mode=research run. Filter, rank, derive, dedup, aggregate, or join across your own lists here (if a needed column is absent, workflow enrich it first); reach for --mode=research only when the query must run over the full Landbase database.

Scope limit: transform sees only input_dataset plus datasets passed via --additional-datasets. It never reaches the full Landbase database. To find the globally top-N companies (not just rank within your pool), use --mode=research.

Pool-completeness prerequisite: transform can only return rows already in input_dataset. If the original --mode=default search excluded rows you now need, no SQL recovers them — widen the original search or use --mode=research.

Red Flags — STOP

Skill frontmatter

when_to_use: when the user wants to filter a dataset with custom criteria, run SQL transformations, select specific columns, join across dataset fields, or reshape results that a search query can't express precisely enough version: 1.1.0 user-invocable: true allowed-tools: ReadBashAskUserQuestion model: sonnet

Work with this as data

Every skill here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for agent skills

4 MCP tools reach this
  • find_skillsBrowse and filter every skill in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This skill
curl "https://apis.io/api/v1/skills/workflow-transform"
All agent skills
curl "https://apis.io/api/v1/skills?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.