SuperAPI AI Directory

contract-cli-mdm-fields

Data & analytics

View repository

Updated 10-15 21:39

About this skill

contract-cli MDM Fields

CRITICAL — before starting, MUST first read ../contract-cli-shared/SKILL.md。

Applicable commands

  • contract-cli mdm fields list --biz-line <vendor|legal_entity|vendor_risk>

Quick decision

  • Need to confirm field definitions before writing a vendor:--biz-line vendor
  • Need to confirm field definitions before writing a legal entity:--biz-line legal_entity
  • Need to confirm vendor risk fields:--biz-line vendor_risk, only applies to the user/MCP path
  • If the user wants to query contract creation enums, do not go here; instead use contract enum list

Key rules

  • --biz-line required
  • mdm fields list --as user goes through /open-apis/contract/v1/mcp/config/config_list
  • mdm fields list --as bot goes through /open-apis/mdm/v1/config/config_list
  • The bot backend currently only accepts vendor / legalEntity; the CLI will automatically map the legal_entity under bot to legalEntity
  • vendor_risk is not supported under the bot identity and will error locally
  • --user-id-type / --user-id is still passed through according to the shared rules, with no local validation
  • Currently only encapsulates field configuration queries, and is not responsible for local validation and field conversion
  • The recommended reading order is:

Implementation source

Operational recommendations

  • Before wrapping write interfaces, first use this command to confirm the field structure
  • When you need to write a vendor or legal entity, wait for the corresponding structured write command to open; do not fall back to api call, this entry point is currently not open
  • When you only want to query contract enums, do not go here

Do not do this

  • Do not treat mdm fields list as a data query command
  • Do not assume it will automatically help you validate write requests