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-linerequiredmdm fields list --as usergoes through/open-apis/contract/v1/mcp/config/config_listmdm fields list --as botgoes through/open-apis/mdm/v1/config/config_list- The bot backend currently only accepts
vendor/legalEntity; the CLI will automatically map thelegal_entityunder bot tolegalEntity vendor_riskis not supported under the bot identity and will error locally--user-id-type/--user-idis 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:
- First read references/schema-fields-guide.md to select the business line and query scenario
- Then read references/schema-biz-lines.md to look up the
--biz-lineexact values - Finally read references/commands.md to copy command examples
Implementation source
- internal/cli/schema_command.go
- internal/openplatform/schema/service.go
- references/schema-fields-guide.md
- references/schema-biz-lines.md
- references/commands.md
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 listas a data query command - Do not assume it will automatically help you validate write requests