Every MCP tool currently open: parameters, login requirement, confirmation level, error codes.

# Công cụ MCP đang mở

Dấu `*` = tham số bắt buộc. Kết quả là một đối tượng JSON; lỗi có dạng `{"error":"<mã>"}`.

| Công cụ | Mô tả | Tham số | Cần đăng nhập | Xác nhận |
| --- | --- | --- | --- | --- |
| `list_plans` | Plans on sale; filter by kind/specs/price. VND excl. VAT; paged. | kind (vps/vps_global/hosting), min_cpu (integer), min_ram_gb (integer), min_disk_gb (integer), max_price (integer), cycle (monthly/quarterly/semiannually/annually/biennially/triennially), limit (integer), cursor (string) | không | — |
| `get_plan` | Plan: specs, locations, OS keys. prices exclude VAT; hourly_vat_incl includes VAT | pid* (integer) | không | — |
| `compare_plans` | Compare 2-4 plans: specs, price, price per GB RAM. | pids* (integer[]), cycle (monthly/quarterly/semiannually/annually/biennially/triennially) | không | — |
| `get_quote` | Quote: plan x cycle x qty (1-5), VAT incl., no promo codes. | pid* (integer), cycle (monthly/quarterly/semiannually/annually/biennially/triennially), qty (integer) | không | — |
| `list_os` | OS per plan (pid); without pid: {vn, global} labels only. | pid (integer), family (linux/windows) | không | — |
| `get_policy` | Policy by topic/section; no topic = index. | topic (string), section (string) | không | — |
| `search_docs` | Search help articles: titles, links, snippets. | q* (string), limit (integer) | không | — |
| `login_start` | Start login: emails a 6-digit code; ask the user for it. | email* (string) | có | — |
| `login_verify` | Finish login with the 6-digit code (24-hour session). | code* (string) | có | — |
| `logout` | End this session; public tools still work. | — | có | — |
| `whoami` | Account, wallet (lags ~2 min), today's spend, session expiry. | — | có | — |
| `list_sessions` | AI login sessions: agent, IP, last use, expiry. | — | có | — |
| `revoke_session` | Revoke an AI session by id, or all (all:true). | id (string), all (boolean) | có | — |
| `get_account` | Account profile and service/ticket counts. | — | có | — |
| `get_overview` | Dashboard: services, renewals, wallet, unpaid invoices. | — | có | — |
| `list_wallet` | Wallet movements or gateway payments (kind); date range; paged. | kind (wallet/payments), from (string), to (string), limit (integer), cursor (string) | có | — |
| `list_emails` | Emails sent to the account (date, subject; never the body). | cursor (string) | có | — |
| `affiliate` | Affiliate: status and referral link (get) or enrol (activate). | action (get/activate) | có | none |
| `telegram_link` | Telegram alerts: status or unlink. Agents cannot create links (customer: console.ahvcloud.vn). | action (get/unlink) | có | none |
| `list_vps` | VPS and hosting services; filter by status/text; paged. | status (Active/Suspended/Pending/Provisioning), q (string), limit (integer), cursor (string) | có | — |
| `get_vps` | One VPS: status, specs, IP, plan, price, renewal; detail:full adds disk. | id* (integer), detail (basic/full) | có | — |
| `get_vps_metrics` | VPS CPU/RAM/network usage by hour/day/week/month. | id* (integer), range (hour/day/week/month) | có | — |
| `list_vps_tasks` | Recent tasks of a VPS, newest first. | id* (integer), limit (integer) | có | — |
| `get_vps_extras` | VPS network, backups, snapshots or firewall rules. | id* (integer), what* (network/backups/snapshots/firewall) | có | — |
| `get_hourly` | Hourly billing of a VPS: rate, spend, state. | id* (integer) | có | — |
| `list_invoices` | Invoices, newest first; filter by status/date; paged. | status (Paid/Unpaid/Cancelled/Refunded/Collections/Draft/Payment Pending), from (string), to (string), limit (integer), cursor (string) | có | — |
| `get_invoice` | One invoice with up to 20 line items. | id* (integer) | có | — |
| `list_domains` | Domains on the account: status, expiry, auto-renew. | — | có | — |
| `get_domain` | One domain: status, expiry, NS, WHOIS, .vn profile status. | domain* (string) | có | — |
| `check_domain` | Domain availability and price; tlds:true lists popular TLD prices. | name (string), tlds (boolean) | có | — |
| `domain_kyc` | Domain-owner (KYC) profile: get, provinces, or save; ID numbers masked. | action (get/provinces/save), subject_type (individual/organization), fullname (string), tax_code (string), rep_name (string), rep_position (string), gender (male/female), birthday (string), id_type (cccd/passport), id_number (string), id_issue_date (string), id_issue_place (string), email (string), phone (string), country (string), province (string), ward (string), address (string), agree (boolean) | có | none |
| `domain_dns` | DNS: list, history, add/update (type, name, value), update/delete (record_id); writes need confirm_token. | domain* (string), action* (list/history/add/update/delete), type (A/AAAA/CNAME/MX/TXT/CAA/SRV/REDIRECT), name (string), value (string), ttl (integer), record_id (string), confirm_token (string) | có | add/update/delete: level 1 (confirm_token) |
| `domain_nameservers` | Show nameservers (no ns) or set 2-5 (wrong values take the domain offline; needs confirm_token). | domain* (string), ns (string[]), confirm_token (string) | có | set (with ns): level 1 (confirm_token) |
| `list_tickets` | Support tickets, paged; departments:true lists departments. | status (string), departments (boolean), cursor (string) | có | — |
| `get_ticket` | One ticket with its last 10 replies. | id* (integer) | có | — |
| `vps_power` | VPS power. shutdown = graceful; stop = hard power-off, needs confirm_token. | id* (integer), action* (start/shutdown/reboot/stop), confirm_token (string) | có | stop: level 1 (confirm_token); start/shutdown/reboot: none |
| `vps_reinstall` | Reinstall VPS OS; ERASES ALL DATA. No os: lists OS keys. Needs confirm_token. | id* (integer), os (string), confirm_token (string) | có | level 1 (confirm_token) — always |
| `vps_reset_password` | Reset VPS admin password; emailed to the owner, never shown. Needs confirm_token. | id* (integer), confirm_token (string) | có | level 1 (confirm_token) |
| `get_vps_job` | State of the last reinstall or password reset. | id* (integer), kind* (reinstall/reset_password) | có | none |
| `vps_settings` | VPS settings: rename, autorenew, assign_group (no group_id = remove). | id* (integer), action* (rename/autorenew/assign_group), name (string), enabled (boolean), group_id (string) | có | none |
| `vps_groups` | VPS groups: list, create (name), rename (group_id, name), delete (group_id). | op* (list/create/rename/delete), name (string), group_id (string) | có | none |
| `hourly_control` | Hourly VPS: stop (billing stops; deleted after retention) or resume (charges wallet hourly). Needs confirm_token. | id* (integer), action* (stop/resume), confirm_token (string) | có | stop/resume: level 1 (confirm_token) |
| `update_account` | Update profile (not email). Needs confirm_token. | firstname (string), lastname (string), company (string), phone (string), address1 (string), address2 (string), city (string), state (string), postcode (string), country (string), confirm_token (string) | có | level 1 (confirm_token) |
| `domain_autorenew` | Turn domain auto-renewal on or off. | domain* (string), enabled* (boolean) | có | none |
| `create_ticket` | Open a support ticket; departments:true lists departments. | departments (boolean), dept (integer), subject (string), message (string), priority (Low/Medium/High) | có | none |
| `reply_ticket` | Reply to one of the account's tickets. | id* (integer), message* (string) | có | none |
| `get_order_options` | Order options for a plan: OS list, locations, GPU hourly rate. Read-only. | pid* (integer) | có | none |
| `quote_order` | Price quote for a plan (VAT, promo, wallet balance). cycle hourly = rental, no promo. Read-only. | pid* (integer), cycle (monthly/quarterly/semiannually/annually/biennially/triennially/hourly), promo (string) | có | none |
| `create_order` | Order and CHARGE the wallet now; needs confirm_token. VPS: hostname; hosting: domain (not both). | pid* (integer), os (string), hostname (string), domain (string), cycle (monthly/quarterly/semiannually/annually/biennially/triennially/hourly), location (string), agent_type (string), promo (string), confirm_token (string) | có | level 1 (confirm_token) — every order, any amount |
| `pay_invoice` | Pay an unpaid invoice from the wallet (CHARGES it now); needs confirm_token. | invoice_id* (integer), confirm_token (string) | có | level 1 (confirm_token) — every payment |
| `create_topup` | Wallet top-up by bank payment: returns account, memo, QR. company:true asks a VAT invoice for the saved company. | amount* (integer), invoice_id (integer), company (boolean) | có | none (creates a top-up order; money goes into the wallet) |
| `get_topup` | Check whether a top-up order has been paid. Read-only. | order_id* (string) | có | none |
| `get_upgrade_options` | Upgrade options for a VPS: higher plans with cost, and per-part (CPU/RAM/disk/net/IP) prices. Read-only. | id* (integer) | có | none |
| `vps_upgrade` | Upgrade VPS: pid OR add_cpu/add_ram_gb/add_disk_gb/add_ip/net_mbps (= target speed). CHARGES wallet; confirm_token. | id* (integer), pid (integer), add_cpu (integer), add_ram_gb (integer), add_disk_gb (integer), net_mbps (integer), add_ip (integer), confirm_token (string) | có | level 1 (confirm_token) — every upgrade, any amount |
| `register_domain` | Register a domain for 1 year; CHARGES wallet; needs confirm_token. Customer must have accepted terms on console. | domain* (string), confirm_token (string) | có | level 1 (confirm_token) — every registration |
| `renew_domain` | Renew a domain (period 1-10 years). quote_only:true = price only. Otherwise CHARGES wallet; needs confirm_token. | domain* (string), period (integer), quote_only (boolean), confirm_token (string) | có | renew: level 1 (confirm_token); quote_only: none |
| `quote_cancel` | Cancellation preview for a service: refund now (monthly) or end-of-term date. Read-only. | id* (integer) | có | none |
| `cancel_service` | CANCEL. Monthly: DELETES now, refund to wallet; longer: no refund, ends at term. Run quote_cancel first; email_code. | id* (integer), email_code (string) | có | level 2 (email_code emailed to the account owner) |
| `agent_catalog` | AI agents installable on a VPS (id) with their config fields. Read-only. | id (integer) | có | none |
| `agent_list` | Installed AI agents on a VPS: status, config (secrets only as set), last job log. Read-only. | id* (integer) | có | none |
| `agent_install` | Install an AI agent on a VPS; config = catalog fields (keys from customer; never repeat them). Poll agent_list. | id* (integer), slug* (string), config* (object) | có | none |
| `agent_config` | Change an agent's config; omitted fields keep value. Never repeat secrets. Poll agent_list. | id* (integer), slug* (string), config* (object) | có | none |
| `agent_action` | Agent start/stop/restart/update. remove deletes agent and config; needs confirm_token. | id* (integer), slug* (string), action* (start/stop/restart/update/remove), confirm_token (string) | có | remove: level 1 (confirm_token); others: none |
| `agent_logs` | Last log lines of an agent (customer keys masked as ***). Read-only. | id* (integer), slug* (string) | có | none |
| `agent_login_start` | Start agent's provider login; returns URL and code for the customer to open. | id* (integer), slug* (string) | có | none |
| `agent_login_submit` | Submit the code the customer got after provider login. | id* (integer), slug* (string), code* (string) | có | none |
| `agent_login_status` | Provider login state: pending/done/error. Read-only. | id* (integer), slug* (string) | có | none |

## Mã lỗi

| Mã | Ý nghĩa |
| --- | --- |
| `unauthorized` | chưa được phép |
| `forbidden` | không có quyền |
| `not_found` | không tìm thấy |
| `bad_input` | tham số sai (kèm `field`) |
| `confirmation_required` | cần xác nhận thao tác |
| `email_code_required` | cần mã xác nhận gửi qua email |
| `insufficient_balance` | ví không đủ tiền |
| `daily_amount_limit` | vượt trần chi tiêu trong ngày |
| `daily_vps_limit` | vượt số máy trong ngày |
| `rate_limited` | gọi quá nhanh, thử lại sau `retry_after` giây |
| `in_progress` | đang xử lý |
| `unsupported_product` | sản phẩm chưa hỗ trợ |
| `upstream_unavailable` | hệ thống tạm không phản hồi, thử lại sau |
| `login_required` | cần đăng nhập |
| `bad_code` | mã sai |
| `not_enabled_yet` | chưa mở |
| `too_many_attempts` | thử sai quá nhiều lần |
| `not_open` | chưa mở |
| `client_not_supported` | client này chưa được hỗ trợ đăng nhập (công cụ công khai vẫn dùng được) |

Cập nhật: 2026-11-30T10:03:52.525Z
