bdc-validate-share-metadata

bdc-validate-share-metadata is a command for Claude Code from MarioDeFelipe/sap-bdc-plugin. It costs 11 tokens per session (508 once invoked), scanned A, original, MIT.

A command that checks ORD (Open Resource Discovery) metadata, which is JSON describing a data product, before it is published through BDC.

In plain words
What is it for?
Use it with inline JSON or a JSON file to validate a data product's metadata and see whether publishing can proceed.
Why use it?
It catches metadata errors and reports warnings before invalid information is sent to the data-sharing system.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the sap-bdc plugin — 7 skills, 4 commands, 1 MCP server shipped together

Good fit Use it with inline JSON or a JSON file to validate a data product's metadata and see whether publishing can proceed.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/mariodefelipe/sap-bdc-plugin/bdc-validate-share-metadata
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/MarioDeFelipe/sap-bdc-plugin

Made for: Claude Code.

Or install sap-bdc, the plugin that ships this one along with the rest of its 7 skills, 4 commands, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for bdc-validate-share-metadata

README.md
[![agentmods](https://agentmods.dev/badge/commands/mariodefelipe/sap-bdc-plugin/bdc-validate-share-metadata.svg)](https://agentmods.dev/commands/mariodefelipe/sap-bdc-plugin/bdc-validate-share-metadata)
Your own site
<a href="https://agentmods.dev/commands/mariodefelipe/sap-bdc-plugin/bdc-validate-share-metadata"><img src="https://agentmods.dev/badge/commands/mariodefelipe/sap-bdc-plugin/bdc-validate-share-metadata.svg" alt="Measured on agentmods" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 508 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00011 $0.00508
Opus 5 $0.00005 $0.00254
Sonnet 5 $0.00002 $0.00102
Haiku 4.5 $0.00001 $0.00051

Measured 7d ago against content hash b24347b23823, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

bdc-validate-share-metadata scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/bdc-validate-share-metadata.md · 46 lines

What it actually says

You are running the /bdc-validate-share-metadata command.

The user wants to validate ORD (Open Resource Discovery) metadata before pushing it through create_or_update_share. The ORD payload to validate is in $ARGUMENTS — it may be either:

  • An inline JSON object, e.g. {"title": "...", ...} or {"@openResourceDiscoveryV1": {...}}
  • A path to a .json file on disk

If $ARGUMENTS is empty, ask the user to paste the ORD JSON or provide a file path, then stop.

Steps

  1. Resolve $ARGUMENTS into a Python dict — read from disk if it looks like a path, otherwise json.loads() it.
  2. Call the validate_ord_metadata tool from the sap-bdc MCP server with the parsed object as ord.
  3. Present the result in this exact shape:
### ORD metadata validation

Status: ✅ Valid  /  ❌ Invalid

Errors (block publish):
  - <each error>

Warnings (non-blocking):
  - <each warning>

Spec reference: https://sap.github.io/csn-interop-specification/

Source rules: SAP help.sap.com "Working with Data Products in SAP Databricks" (May 2026), pages 13–15.
  1. If valid=true, suggest the next step: call create_or_update_share (which in v0.5.0+ will re-run this validator automatically; pass skip_validation=true only if you want to bypass).

  2. If valid=false, do NOT call create_or_update_share. List the rules the ORD violates and propose a fix:

    • Required field missing → ask the user to supply it
    • description contains shortDescription → suggest a rewrite that doesn't quote shortDescription verbatim
    • Invalid enum (visibility, releaseStatus) → list the allowed values
    • Bad ISO 8601 date → show the expected format (2026-12-19T15:47:04+00:00)
    • sunsetDate < deprecationDate → call out which one to fix

Do NOT modify the user's ORD without confirmation. The goal is to surface validation failures before a round-trip to the SDK.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 46 lines · 11 tokens per session scan A b24347b23823

Subscribe to this mod's changes

bdc-validate-share-metadata is a command published in the GitHub repository MarioDeFelipe/sap-bdc-plugin (9 stars, last pushed 4mo ago), licensed MIT. It adds 11 tokens to every session and 508 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.