No slash command · from erpl-odata
Guides users through installing the erpl_odata DuckDB extension, selecting the correct function family for source systems (HTTP, OData, SAP, Datasphere, Microsoft Graph, etc.), creating secrets, handling TLS trust, and telemetry opt-out.
Ships in erpl-odata. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Extension: erpl_odata v2026.11.25 (formerly erpl_web) | DuckDB: v2.0.1 / v1.5.6
This skill gets a user from zero to a first authenticated query. The per-source skills listed under "Where to go next" take over from there.
erpl_odata, not erpl_web. On the community repository
erpl_web is an alias, but from http://get.erpl.io, LOAD erpl_web fails. Write
INSTALL erpl_odata FROM community; LOAD erpl_odata; in new scripts.http_*, odata_*, odata_sap_show and odp_odata_* look up an http_basic or
http_bearer secret by URL SCOPE (longest prefix wins). They can also be told
the secret explicitly with secret := 'name' where the function accepts it.secret := 'name' or, if omitted, the first secret of
that type.auth := on an http_* call overrides every secret. That is handy for one-off
tests and a trap in production: a stray auth silently wins.CREATE SECRET lasts for the session.
CREATE PERSISTENT SECRET writes it to ~/.duckdb/stored_secrets/ unencrypted.
Treat that directory like a password file, or recreate secrets from environment
variables at session start (see erpl-odata-production).erpl_ca_cert_file. Setting it replaces the platform trust store, so
bundle the public CAs too if the same session talks to cloud services.TYPE microsoft_graph, PROVIDER authorization_code
and TYPE datasphere, PROVIDER oauth2 without grant_type 'client_credentials' start
a local callback server and a browser login. They need a desktop session and will hang
in CI, cron or a container. Use the client-credentials variants there.INSTALL erpl_odata FROM community;
LOAD erpl_odata;
Nightly or pre-release builds come from DataZoo's own repository. DuckDB needs to be
started with -unsigned (or allow_unsigned_extensions) for that:
INSTALL erpl_odata FROM 'http://get.erpl.io';
LOAD erpl_odata;
Check what is registered. Every function carries a description and an example:
SELECT function_name, function_type, description
FROM duckdb_functions()
WHERE function_name LIKE 'odata_%' OR function_name LIKE 'odp_odata_%'
ORDER BY function_name;
| Source system | Start with | Secret type | Skill |
|---|---|---|---|
| Any REST/JSON API | http_get, http_post, … | http_basic / http_bearer / auth := | erpl-odata-odata-and-rest |
| Any OData v2/v4 service | odata_read, ATTACH … (TYPE odata) | http_basic / http_bearer | erpl-odata-odata-and-rest |
| SAP S/4HANA / ECC Gateway | odata_sap_show, then odata_read | http_basic (scoped to the host) | erpl-odata-sap-gateway |
| SAP extractors / CDS via ODP (full + delta) | odp_odata_show, odp_odata_read | http_basic | erpl-odata-sap-odp-replication |
| SAP Datasphere | datasphere_show_spaces | datasphere | erpl-odata-sap-datasphere-sac |
| SAP Analytics Cloud | sac_read_planning_data | sac | erpl-odata-sap-datasphere-sac |
| Excel, SharePoint lists, Planner, Outlook, Teams, Entra ID | graph_* | microsoft_graph | erpl-odata-microsoft-365 |
| Dynamics 365 Business Central | bc_show_companies, bc_read | business_central | erpl-odata-dynamics-and-delta-sharing |
| Dataverse / Dynamics 365 CRM | crm_show_entities, crm_read | dataverse | erpl-odata-dynamics-and-delta-sharing |
| Delta Sharing (Databricks, SAP BDC, …) | delta_share_show_shares, delta_share_scan | profile file, no secret | erpl-odata-dynamics-and-delta-sharing |
-- Basic auth, scoped to one host: every URL under the scope uses it
CREATE SECRET sap_dev (
TYPE http_basic,
USERNAME 'DEVELOPER',
PASSWORD 'secret',
SCOPE 'https://sap-dev.example.com:44300/'
);
-- Bearer token
CREATE SECRET api_token (
TYPE http_bearer,
TOKEN 'eyJhbGciOi...',
SCOPE 'https://api.example.com/'
);
Scope the secret to the scheme, host and port exactly as they appear in the URLs you
query. http://host:50000/ and https://host:44300/ are different scopes.
| Provider | Use for | Parameters |
|---|---|---|
client_credentials (default) | App-only access, unattended jobs | tenant_id, client_id, client_secret, optional scope (defaults to https://graph.microsoft.com/.default) |
authorization_code | Delegated access as the signed-in user (/me/...), opens a browser | tenant_id, client_id, optional client_secret, scope, redirect_uri (default http://localhost:8080/callback) |
config | A token you obtained elsewhere | access_token, optional refresh_token, expires_at, plus the app parameters |
CREATE SECRET ms_graph (
TYPE microsoft_graph,
TENANT_ID '00000000-0000-0000-0000-000000000000',
CLIENT_ID '00000000-0000-0000-0000-000000000000',
CLIENT_SECRET 'app-secret'
);
TYPE microsoft_entra takes the same client-credentials parameters with an explicit
scope, for when a token must be minted for a resource other than Graph.
CREATE SECRET bc (
TYPE business_central,
TENANT_ID '00000000-0000-0000-0000-000000000000',
CLIENT_ID '00000000-0000-0000-0000-000000000000',
CLIENT_SECRET 'app-secret',
ENVIRONMENT 'production' -- or 'sandbox', or your environment name
);
CREATE SECRET crm (
TYPE dataverse,
TENANT_ID '00000000-0000-0000-0000-000000000000',
CLIENT_ID '00000000-0000-0000-0000-000000000000',
CLIENT_SECRET 'app-secret',
ENVIRONMENT_URL 'https://myorg.crm4.dynamics.com'
);
Both also have a config provider that takes access_token / refresh_token / expires_at.
| Provider | Parameters |
|---|---|
oauth2 (default) | tenant_name, data_center, client_id, client_secret, scope, redirect_uri (default http://localhost:65000), grant_type (authorization_code default, or client_credentials), token_url |
config | config_file, an INI-style key=value file |
file | filepath, a credentials JSON file |
-- Unattended: client_credentials needs token_url, or tenant_name + data_center
CREATE SECRET dsp (
TYPE datasphere,
PROVIDER oauth2,
TENANT_NAME 'my-tenant',
DATA_CENTER 'eu10',
CLIENT_ID 'sb-...',
CLIENT_SECRET '...',
GRANT_TYPE 'client_credentials'
);
With authorization_code, the first use opens the browser and the refresh token is written
back into the secret, so a PERSISTENT secret survives restarts without a new login.
CREATE SECRET my_sac (
TYPE sac,
PROVIDER access_token,
TENANT_NAME 'my-tenant',
REGION 'eu10', -- eu10, us10, ap10, ca10, jp10, au10, br10, ch10
ACCESS_TOKEN '...'
);
The SAC config provider cannot fetch a token itself yet. Obtain the token outside DuckDB
and use access_token.
SELECT name, type, provider, scope, persistent
FROM duckdb_secrets();
duckdb_secrets() redacts the sensitive values. Use which_secret(url, type) to see which
secret a given URL resolves to:
SELECT * FROM which_secret('https://sap-dev.example.com:44300/sap/opu/odata/sap/', 'http_basic');
-- Preferred: trust the CA that signed the server certificate
SET erpl_ca_cert_file = '/etc/erpl/corporate-ca.pem';
If the session also calls public services, build a combined bundle first, because the setting replaces the platform store:
cat /etc/ssl/certs/ca-certificates.crt corporate-ca.pem > /etc/erpl/erpl-ca-bundle.pem
Last resort, accepted only with this exact literal. Every request then logs a WARN line naming the insecure host:
SET erpl_unsafe_disable_server_cert_verification = 'I_UNDERSTAND_THIS_IS_INSECURE';
SET erpl_unsafe_disable_server_cert_verification = ''; -- back to verifying
On Linux the extension looks for the system bundle at $SSL_CERT_FILE and the usual
distribution paths. If yours lives elsewhere, set SSL_CERT_FILE before starting DuckDB.
The extension sends anonymous usage events (extension and DuckDB version, OS, function names; never data, URLs or credentials). Opt out per session, or for every process with an environment variable:
SET erpl_telemetry_enabled = false;
export DATAZOO_DISABLE_TELEMETRY=1
LOAD erpl_odata;
-- 1. A public OData service needs no secret: prove the extension works
SELECT CustomerID, CompanyName
FROM odata_read('https://services.odata.org/V2/Northwind/Northwind.svc/Customers')
LIMIT 3;
-- 2. Add credentials for your own system
CREATE SECRET sap_dev (
TYPE http_basic,
USERNAME 'DEVELOPER',
PASSWORD 'secret',
SCOPE 'http://localhost:50000/'
);
-- 3. Discover what the system offers, then hand over to the source skill
SELECT service_id, description, version, service_url
FROM odata_sap_show('http://localhost:50000')
LIMIT 20;
If a step fails, turn tracing on (SET erpl_trace_enabled = true; SET erpl_trace_level = 'DEBUG';)
and see the troubleshooting playbook in erpl-odata-production.
erpl-odata-odata-and-rest: generic OData and REST APIserpl-odata-sap-gateway: SAP Gateway serviceserpl-odata-sap-odp-replication: SAP ODP full and delta loadserpl-odata-sap-datasphere-sac: SAP Datasphere and SAP Analytics Clouderpl-odata-microsoft-365: Excel, SharePoint lists, Planner, Outlook, Teams, Entra IDerpl-odata-dynamics-and-delta-sharing: Business Central, Dataverse, Delta Sharingerpl-odata-production: unattended jobs, scheduling, tracing and troubleshootingReference docs:
README.md (Install, HTTP authentication precedence, Microsoft 365 authentication)docs/TLS.mdTELEMETRY.mdWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
8 skills in this plugin
/erpl-odata-dynamics-and-delta-sharingReading Microsoft Dynamics 365 Business Central (bc_show_companies, bc_show_entities, bc_describe, bc_read with company and expand, ATTACH TYPE business_central), Dataverse / Dynamics 365 CRM (crm_show_entities, crm_describe, crm_read) and Delta Sharing shares from Databricks, SAP Business Data Cloud and other providers (delta_share_show_shares, delta_share_show_schemas, delta_share_show_tables, delta_share_scan, profile files) into DuckDB with erpl_odata. Use when the user wants ERP data from Business Central, CRM records from Dataverse, or a table shared over the Delta Sharing protocol.
/erpl-odata-microsoft-365Using Microsoft 365 as a data source and sink from DuckDB with erpl_odata's Microsoft Graph functions: Excel workbooks on OneDrive/SharePoint (graph_show_files, graph_excel_worksheets, graph_excel_tables, graph_excel_read, graph_excel_range, graph_excel_add_rows, graph_excel_delete_rows, ATTACH TYPE excel_workbook, COPY TO FORMAT graph_excel_table), SharePoint lists (graph_show_sites, graph_show_drives, graph_show_lists, graph_describe_list, graph_sharepoint_list_read, graph_sharepoint_create_item / update_item / delete_item, ATTACH TYPE sharepoint_lists with INSERT/UPDATE/DELETE, COPY TO FORMAT graph_sharepoint_list), Planner (plans, buckets, tasks, creating tasks from SQL), Outlook mail, calendars and contacts, Teams channels and messages, and Entra ID users, groups, devices and sign-in logs; app-only vs delegated permissions. Use when the user wants to read or write Excel or SharePoint data, push query results into a list or workbook, create Planner tasks from data, or report on M365 directory, mail or Teams activity.
/erpl-odata-odata-and-restQuerying any OData v2/v4 service and any REST/JSON API from DuckDB SQL with erpl_odata: odata_read (top, skip, expand, count, max_page_size, strict_typing), automatic v2/v4 detection, what WHERE / SELECT / LIMIT push down as $filter / $select / $top, odata_describe, odata_attach and ATTACH ... (TYPE odata), plus http_get / http_head / http_post / http_put / http_patch / http_delete with headers, auth, timeouts, JSON bodies and unpacking JSON responses. Use when the user wants to explore or extract an OData service that is not SAP-specific, call a REST endpoint, page through an API, or turn a JSON response into a table.
/erpl-odata-productionRunning erpl_odata extractions unattended and operating them: job scripts for the DuckDB CLI, persistent DuckDB files or DuckLake as the landing zone, idempotent snapshot and delta (ODP) loads, scheduling with cron or systemd without overlapping runs, unattended credentials (client_credentials, secrets from environment variables, persistent secrets), run logs and monitoring, file tracing (erpl_trace_* settings, PRAGMA erpl_trace_status), and an error-to-fix playbook (401/403, TLS, 404 on /sap/opu, 202 polling, RODPS_REPL_ODP_OPEN, custom service URL guard, NULLs from type conversion). Also how to hand extracted data to other DataZoo tools: flapi to serve it as REST/MCP, anofox-tabular for data-quality gates, anofox-forecast for forecasting and anofox-visualization for dashboards. Use when the user wants to schedule or productionise an extraction, debug a failing job, or build an end-to-end pipeline from SAP or Microsoft data to an API, forecast or dashboard.
/erpl-odata-sap-datasphere-sacPulling SAP Datasphere and SAP Analytics Cloud (SAC) data into DuckDB with erpl_odata: the datasphere secret (oauth2 with authorization_code or client_credentials, config, file), discovery with datasphere_show_spaces, datasphere_show_assets, datasphere_describe_space and datasphere_describe_asset, reading relational assets with datasphere_read_relational and analytic models with datasphere_read_analytical (metrics, dimensions, params, top, skip), and SAC planning and analytic models with sac_read_planning_data, sac_read_analytical and sac_read_story_data using an access_token secret. Also covers what is not implemented yet (SAC discovery functions, ATTACH TYPE sac). Use when the user wants data from a Datasphere space or an SAC model, or asks how to log in to Datasphere from DuckDB.
/erpl-odata-sap-gatewayReading SAP S/4HANA and ECC data through SAP Gateway OData services with erpl_odata: discovering services with odata_sap_show (v2 catalog and v4 service groups), URL anatomy of /sap/opu/odata (v2) and /sap/opu/odata4 (v4 RAP services), basic-auth secrets scoped to the SAP host, describing and attaching a service, SAP-specific quirks (draft entity sets, Edm.DateTime, sap-client, mandatory filters), activating services (/IWFND/MAINT_SERVICE, /IWFND/V4_ADMIN, SICF), and the ABAP trial (A4H) sandbox. Use when the user wants data out of an SAP system via OData, cannot find or reach a Gateway service, or gets 403/404 from /sap/opu. For delta extraction use erpl-odata-sap-odp-replication instead.
npx claudepluginhub datazoode/erpl-odata --plugin erpl-odataOther plugins' skills for the same job