⚠️ STOP — You MUST read and strictly follow the shared runtime rules before proceeding. Do NOT select or call any tool until all rules are read. These rules have the highest priority. → Read gate-runtime-rules.md
MCP ServerStatusGate (main)✅ Required
Query Operations (Read-only)
Execution Operations (Write)
gate-mcp-cursor-installergate-mcp-codex-installergate-mcp-claude-installergate-mcp-openclaw-installerRead and strictly follow references/mcp.md, then execute this skill's collateral-loan workflow.
SKILL.md keeps routing and product constraints.references/mcp.md is the authoritative MCP execution layer for quota/LTV pre-checks, confirmation gates, and post-action verification.This skill activates when the user asks about multi-collateral loan operations. Classify intent via Routing Rules (Cases 1–7). Trigger phrases include: "collateral loan", "current loan", "fixed loan", "repay", "add collateral", "redeem collateral", or equivalent in other languages.
Identify the user intent using Routing Rules (Cases 1–7). If required inputs are missing (order_id, currency, amount, fixed term), ask clarifying questions before proceeding.
Call the corresponding MCP tool when the user asks for rates, LTV, quota, order list, or order detail.
Call cex_mcl_list_user_currency_quota with:
type: collateral or borrowcurrency: comma-separated (borrow: single currency)Call cex_mcl_get_multi_collateral_ltv with:
Call cex_mcl_get_multi_collateral_fix_rate with:
Call cex_mcl_get_multi_collateral_current_rate with:
currencies: comma-separated currency listCall cex_mcl_list_multi_collateral_orders with:
page, limit (optional)sort (optional): time_desc, ltv_asc, ltv_descorder_type (optional): current or fixedCall cex_mcl_get_multi_collateral_order_detail with:
order_idKey data to extract:
If current loan:
cex_mcl_create_multi_collateral with order: JSON string (borrow_currency, borrow_amount, collateral_currencies, order_type: current).If fixed loan:
cex_mcl_get_multi_collateral_fix_rate (returns a list); filter by borrow_currency; take rate_7d or rate_30d as fixed_rate (hourly rate; pass through unchanged, do not convert or relabel as annual/daily).cex_mcl_create_multi_collateral with order: JSON including order_type: fixed, fixed_type 7d/ 30d, fixed_rate.Build draft, ask confirmation, then call cex_mcl_repay_mcl with:
repay_loan: JSON string with order_id and repay_items [{ currency, amount, repaid_all }]Build draft, ask confirmation, then call cex_mcl_operate_multi_collateral with:
collateral_adjust: JSON string with order_id, type ( append | redeem), collaterals [{ currency, amount }]When asking for confirmation: Draft:
Please confirm to proceed.
On success:
On failure:
ToolAuthDescriptionReferencecex_mcl_get_multi_collateral_fix_rateNo7d/30d fixed rates (list)references/mcl-mcp-tools.md``cex_mcl_get_multi_collateral_ltvNoLTV thresholdsreferences/mcl-mcp-tools.md``cex_mcl_get_multi_collateral_current_rateNoCurrent ratesreferences/mcl-mcp-tools.md``cex_mcl_list_user_currency_quotaYesBorrow/collateral quotareferences/mcl-mcp-tools.md``cex_mcl_create_multi_collateralYesCreate loan ( order JSON)references/mcl-mcp-tools.md``cex_mcl_list_multi_collateral_ordersYesList ordersreferences/mcl-mcp-tools.md``cex_mcl_get_multi_collateral_order_detailYesOrder detailreferences/mcl-mcp-tools.md``cex_mcl_repay_mclYesRepay ( repay_loan JSON)references/mcl-mcp-tools.md``cex_mcl_operate_multi_collateralYesAdd/redeem collateral ( collateral_adjust JSON)references/mcl-mcp-tools.md``cex_mcl_list_multi_repay_recordsYesRepay historyreferences/mcl-mcp-tools.md``cex_mcl_list_multi_collateral_recordsYesCollateral historyreferences/mcl-mcp-tools.md
CaseUser IntentSignal KeywordsAction1Create current loan"current loan", "pledge ... borrow ... (current)"See references/scenarios.md Scenario 12Create fixed loan"fixed loan", "borrow ... for 7/30 days"See references/scenarios.md Scenario 23Repay"repay", "repay order ..."See references/scenarios.md Scenario 34Add collateral"add collateral", "add margin"See references/scenarios.md Scenario 45Redeem collateral"redeem collateral", "reduce margin"See references/scenarios.md Scenario 56List orders / order detail"loan orders", "order detail", "my orders"cex_mcl_list_multi_collateral_orders / cex_mcl_get_multi_collateral_order_detail — never include any time/date fields in the user-facing reply (see Presentation below)7Auth failure (401/403)MCP returns 401/403Do not expose keys; prompt user to configure Gate CEX API Key (multi-collateral loan).
references/scenarios.md and follow the Workflow (show order draft, then call MCP only after user confirmation).cex_mcl_create_multi_collateral with order JSON: order_type: current.order JSON must include order_type: fixed, fixed_type: 7d or 30d (lowercase), fixed_rate: hourly interest rate from cex_mcl_get_multi_collateral_fix_rate (use rate_7d or rate_30d for that borrow_currency; pass as-is, do not describe as annual or daily rate). Missing fixed fields may yield INVALID_PARAM_VALUE.cex_mcl_repay_mcl with repay_loan JSON.cex_mcl_operate_multi_collateral, collateral_adjust with type: append.type: redeem.cex_mcl_get_multi_collateral_ltv — init_ltv, alert_ltv, liquidate_ltv.cex_mcl_list_user_currency_quota or current rate tools. On confirm: cex_mcl_create_multi_collateral with order JSON.cex_mcl_get_multi_collateral_fix_rate; filter list by borrow_currency; on empty or no row, stop with user message; else set fixed_rate = rate_7d or rate_30d ( hourly rate; pass as-is into order JSON; do not describe as annual or daily). On confirm: order JSON with fixed fields.cex_mcl_repay_mcl with repay_loan JSON.cex_mcl_operate_multi_collateral with collateral_adjust JSON.When the user asks to view my collateral loan orders or order detail:
borrow_time, maturity, due time, operate_time, create_time, repay_time, calendar dates, Unix seconds as dates). Do not paraphrase relative timing (e.g. "expires in 3 days") computed from those fields.order_id, status, borrow side (currency, principal/interest left), collateral side (currency, amount), current LTV if present, fixed_type 7d/ 30d as term label only (no calendar dates).cex_mcl_create_multi_collateral, cex_mcl_repay_mcl, cex_mcl_operate_multi_collateral): Always require explicit confirmation and an order draft before execution.ConditionResponse401/403"Please configure your Gate CEX API Key in MCP with multi-collateral loan permission."cex_mcl_create_multi_collateral failsCheck order JSON: borrow fields; for fixed include fixed_type 7d/ 30d and fixed_rate from fix_rate tool.Wrong fixed_typeMust be 7d or 30d, lowercase.Fix rate empty (fixed)"Fixed rate temporarily unavailable; try later or use current loan."Repay / operate failsCheck order_id, currency, amount in JSON payloads.Order not found"Order not found." / "No loan orders."
See references/scenarios.md for prompt examples and expected behaviors (create current/fixed, repay, add collateral, redeem collateral).