PrivateByte

Manage PrivateByte servers, backups, proxies, billing and support tickets from an AI agent.

¿Debería usar esto?

Calidad y seguridad

A
Calidad de la descripción
98%
Integridad del esquema
80%
Calidad de los nombres
93%
Riesgo de envenenamiento
100%
Coincidencia de permisos
100%
Cumplimiento del protocolo
100%

Hallazgos (1)

  • LOWTool 'server_usage' description lacks action verben server_usage

Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.

Costo de contexto

~10,417Tokens (definiciones de herramientas)
~1.6 KBTamaño de respuesta típico
Impacto significativo en la atención (8.14% del contexto de 128k)

Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.

Instalar

Instalación con un clic

Agrega esto a tu archivo `claude_desktop_config.json`:

{
  "mcpServers": {
    "mcp": {
      "url": "https://mcp.privatebyte.com"
    }
  }
}

Puntos de conexión remotos

https://mcp.privatebyte.comstreamable-http

Qué puede hacer

Inventario de herramientas

Herramientas (44)

🟢 Solo lectura🟡 Escritura🔴 Eliminación⚪ Desconocido
🟢list_products(category)

List what can be ordered, with monthly price and whether it is in stock. Use it first when someone asks for a new server. Filter with category "vps" for servers, "gateway" for Gateways (a dedicated IP routed to your own machine) or "proxies" for proxy credit and static proxy addresses. Prices are whole minor units (599 = 5.99).

Esquema de entrada

{
  "type": "object",
  "properties": {
    "category": {
      "type": "string",
      "enum": [
        "vps",
        "gateway",
        "proxies"
      ]
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢get_product(product_id)

Read one product: its prices per billing cycle and the operating systems and extras it can be ordered with. Call it before create_server to see the operating system names.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "product_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "product_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟡create_server(product_id, os, extras, billing_cycle, hostname, ...)

Order a new server AND pay for it from the account wallet. THIS SPENDS REAL MONEY. It works in two steps. Step 1: call it with only product_id; nothing is ordered, and the reply lists the questions from checkout (operating system, each extra such as additional IPv4 or disk, billing cycle, hostname, coupon, SSH keys for the first login) with their choices and prices. Ask the person every question; never choose for them. Step 2: call it again with every answer, the ceiling max_price_minor (whole minor units, 599 = 5.99) and a request_id. If any answer is missing, or the first invoice would be above the ceiling, nothing is ordered. The server renews at the same price every billing cycle until the service is cancelled. Needs a key with orders:create, billing:read and invoices:pay. If the wallet cannot cover it, the order is held unpaid for 15 minutes and the reply says how much is missing.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "product_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "From list_products"
    },
    "os": {
      "description": "Operating system: a name or part of one, for example \"Ubuntu 24.04\", or its value id",
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "string",
          "minLength": 2,
          "maxLength": 60
        }
      ]
    },
    "extras": {
      "description": "One entry per extra the product offers: the option name (or id) mapped to the chosen value name (or id). Choose the free value to decline an extra.",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "anyOf": [
          {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          {
            "type": "string",
            "minLength": 1,
            "maxLength": 60
          }
        ]
      }
    },
    "billing_cycle": {
      "description": "One of the cycles the product is sold in, for example monthly",
      "type": "string",
      "minLength": 3,
      "maxLength": 20
    },
    "hostname": {
      "description": "A name for the server, or null when the person does not want one",
      "anyOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 253
        },
        {
          "type": "null"
        }
      ]
    },
    "coupon_code": {
      "description": "A coupon code, or null when the person has none",
      "anyOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        {
          "type": "null"
        }
      ]
    },
    "ssh_keys": {
      "description": "Ids of saved SSH keys to log in with, or an empty list for none. Not asked for Windows.",
      "maxItems": 10,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 4,
        "maxLength": 64
      }
    },
    "quantity": {
      "default": 1,
      "description": "How many identical servers. Only set it when the person asked for more than one.",
      "type": "integer",
      "minimum": 1,
      "maximum": 10
    },
    "max_price_minor": {
      "description": "Spending ceiling for the first invoice, in whole minor units",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "request_id": {
      "type": "string",
      "minLength": 8,
      "maxLength": 64,
      "pattern": "^[A-Za-z0-9_.:-]+$",
      "description": "An id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action."
    }
  },
  "required": [
    "product_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟡order_product(product_id, extras, billing_cycle, quantity, coupon_code, ...)

Order something that is not a server (a Gateway, a static proxy address, proxy credit) AND pay for it from the account wallet. THIS SPENDS REAL MONEY. Two steps, like create_server. Step 1: call it with only product_id; nothing is ordered, and the reply lists the questions (each option such as the country, billing cycle, quantity, coupon) with choices and prices. Ask the person every question; never choose for them. Step 2: call it again with every answer, the ceiling max_price_minor (whole minor units) and a request_id. Needs a key with orders:create, billing:read and invoices:pay. For servers use create_server.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "product_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "From list_products"
    },
    "extras": {
      "description": "One entry per option the product has: the option name (or id) mapped to the chosen value name (or id), for example {\"ISP Country\": \"United States\"}",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "anyOf": [
          {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          {
            "type": "string",
            "minLength": 1,
            "maxLength": 60
          }
        ]
      }
    },
    "billing_cycle": {
      "description": "One of the cycles the product is sold in",
      "type": "string",
      "minLength": 3,
      "maxLength": 20
    },
    "quantity": {
      "description": "How many units",
      "type": "integer",
      "minimum": 1,
      "maximum": 10
    },
    "coupon_code": {
      "description": "A coupon code, or null when the person has none",
      "anyOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        {
          "type": "null"
        }
      ]
    },
    "max_price_minor": {
      "description": "Spending ceiling for the first invoice, in whole minor units",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "request_id": {
      "type": "string",
      "minLength": 8,
      "maxLength": 64,
      "pattern": "^[A-Za-z0-9_.:-]+$",
      "description": "An id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action."
    }
  },
  "required": [
    "product_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢list_servers

List the servers on the account with their id, name, plan, IP address and billing status.

Esquema de entrada

{
  "type": "object",
  "properties": {},
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢get_server(server_id)

Read one server: power state, addresses, size, operating system and current resource use.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "server_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "server_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟡server_power(server_id, action, confirm, request_id)

Start, stop or restart a server. stop asks the operating system to shut down cleanly. force_stop cuts power at once and can lose unsaved data: it needs confirm set to the server id. Needs a key with vm:power.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "server_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "action": {
      "type": "string",
      "enum": [
        "start",
        "stop",
        "restart",
        "force_stop"
      ]
    },
    "confirm": {
      "description": "Only for force_stop: repeat the server id",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "request_id": {
      "type": "string",
      "minLength": 8,
      "maxLength": 64,
      "pattern": "^[A-Za-z0-9_.:-]+$",
      "description": "An id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action."
    }
  },
  "required": [
    "server_id",
    "action"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢get_operation(server_id, operation_id)

Follow work started by another tool (power, backup, reinstall). status pending or running means keep waiting; succeeded and failed are final.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "server_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "operation_id": {
      "type": "string",
      "minLength": 4,
      "maxLength": 64
    }
  },
  "required": [
    "server_id",
    "operation_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟡create_snapshot(server_id, name, request_id)

Take a snapshot of a server's disk as it is now, to roll back to later. Free. Needs a key with vm:write.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "server_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 60
    },
    "request_id": {
      "type": "string",
      "minLength": 8,
      "maxLength": 64,
      "pattern": "^[A-Za-z0-9_.:-]+$",
      "description": "An id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action."
    }
  },
  "required": [
    "server_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟡create_backup(server_id, request_id)

Start a full backup of a server. Free. It runs in the background; follow it with get_operation. Needs a key with vm:write.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "server_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "request_id": {
      "type": "string",
      "minLength": 8,
      "maxLength": 64,
      "pattern": "^[A-Za-z0-9_.:-]+$",
      "description": "An id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action."
    }
  },
  "required": [
    "server_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢list_snapshots(server_id)

List a server's snapshots with id, name, status and size. Only status available can be restored or deleted.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "server_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "server_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴restore_snapshot(server_id, snapshot_id, confirm, request_id)

ROLLS THE SERVER'S DISK BACK to a snapshot. Everything written since that snapshot is lost. Ask the person before calling this. confirm must repeat the server id. Needs a key with vm:destroy. The account owner is emailed.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "server_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "snapshot_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "From list_snapshots"
    },
    "confirm": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Repeat the server id"
    },
    "request_id": {
      "type": "string",
      "minLength": 8,
      "maxLength": 64,
      "pattern": "^[A-Za-z0-9_.:-]+$",
      "description": "An id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action."
    }
  },
  "required": [
    "server_id",
    "snapshot_id",
    "confirm"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴delete_snapshot(server_id, snapshot_id, confirm, request_id)

Delete one snapshot for good; it cannot be restored afterwards. The server itself is not touched. Ask the person first. confirm must repeat the server id. Needs a key with vm:destroy.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "server_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "snapshot_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "From list_snapshots"
    },
    "confirm": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Repeat the server id"
    },
    "request_id": {
      "type": "string",
      "minLength": 8,
      "maxLength": 64,
      "pattern": "^[A-Za-z0-9_.:-]+$",
      "description": "An id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action."
    }
  },
  "required": [
    "server_id",
    "snapshot_id",
    "confirm"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢list_backups(server_id)

List a server's backups with id, status, type (manual or auto), size and time. Only status created can be restored.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "server_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "server_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴restore_backup(server_id, backup_id, confirm, request_id)

OVERWRITES THE SERVER'S WHOLE DISK with a backup. Everything written since that backup is lost and the server is offline while it restores. Ask the person before calling this. confirm must repeat the server id. Needs a key with vm:destroy. The account owner is emailed.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "server_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "backup_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "From list_backups"
    },
    "confirm": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Repeat the server id"
    },
    "request_id": {
      "type": "string",
      "minLength": 8,
      "maxLength": 64,
      "pattern": "^[A-Za-z0-9_.:-]+$",
      "description": "An id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action."
    }
  },
  "required": [
    "server_id",
    "backup_id",
    "confirm"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴delete_backup(server_id, backup_id, confirm, request_id)

Delete one backup for good; it cannot be restored afterwards. The server itself is not touched. Ask the person first. confirm must repeat the server id. Needs a key with vm:destroy.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "server_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "backup_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "From list_backups"
    },
    "confirm": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Repeat the server id"
    },
    "request_id": {
      "type": "string",
      "minLength": 8,
      "maxLength": 64,
      "pattern": "^[A-Za-z0-9_.:-]+$",
      "description": "An id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action."
    }
  },
  "required": [
    "server_id",
    "backup_id",
    "confirm"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴firewall(server_id, action, rule, rule_id, confirm, ...)

A server's firewall. action list shows the rules in the order they are checked (the first match decides; traffic no rule matches is allowed). add appends one rule; remove deletes one rule by rule_id. add and remove change who can reach the server, so ask the person first and set confirm to the server id. list needs vm:read; add and remove need vm:destroy.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "server_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "action": {
      "type": "string",
      "enum": [
        "list",
        "add",
        "remove"
      ]
    },
    "rule": {
      "description": "Only for add",
      "type": "object",
      "properties": {
        "direction": {
          "type": "string",
          "enum": [
            "in",
            "out"
          ],
          "description": "in: traffic arriving at the server. out: traffic leaving it"
        },
        "protocol": {
          "type": "string",
          "enum": [
            "tcp",
            "udp",
            "icmp",
            "any"
          ]
        },
        "port": {
          "description": "Empty for every port, one port (\"443\") or a range (\"8000-9000\"). Empty for icmp",
          "type": "string",
          "maxLength": 11
        },
        "ip": {
          "description": "IPv4 address or network, e.g. 203.0.113.9 or 198.51.100.0/24. Defaults to anywhere",
          "type": "string",
          "maxLength": 18
        },
        "action": {
          "type": "string",
          "enum": [
            "accept",
            "drop"
          ]
        },
        "comment": {
          "type": "string",
          "maxLength": 80
        }
      },
      "required": [
        "direction",
        "protocol",
        "action"
      ]
    },
    "rule_id": {
      "description": "Only for remove: from action list",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "confirm": {
      "description": "For add and remove: repeat the server id",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "request_id": {
      "type": "string",
      "minLength": 8,
      "maxLength": 64,
      "pattern": "^[A-Za-z0-9_.:-]+$",
      "description": "An id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action."
    }
  },
  "required": [
    "server_id",
    "action"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢server_usage(server_id, range)

A server's resource use: CPU, memory, disk and network now, plus up to 24 past samples over range (1h, 6h, 24h or 7d). A gap in the history means no sample, not zero use.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "server_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "range": {
      "default": "24h",
      "type": "string",
      "enum": [
        "1h",
        "6h",
        "24h",
        "7d"
      ]
    }
  },
  "required": [
    "server_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟡tickets(action, ticket_id, message, cursor, request_id)

Follow up on support tickets. action list shows the account's tickets (pass cursor from the last page for more); get reads one ticket with its replies; reply adds a message; close closes it. Open a new ticket with open_ticket. Never put passwords or keys in a message. list and get need tickets:read; reply and close need tickets:write.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "action": {
      "type": "string",
      "enum": [
        "list",
        "get",
        "reply",
        "close"
      ]
    },
    "ticket_id": {
      "description": "For get, reply and close",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "message": {
      "description": "Only for reply",
      "type": "string",
      "minLength": 1,
      "maxLength": 16000
    },
    "cursor": {
      "description": "Only for list",
      "type": "string",
      "maxLength": 200
    },
    "request_id": {
      "type": "string",
      "minLength": 8,
      "maxLength": 64,
      "pattern": "^[A-Za-z0-9_.:-]+$",
      "description": "An id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action."
    }
  },
  "required": [
    "action"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴set_rdns(server_id, ip, hostname, request_id)

Request a reverse DNS (PTR) record for one of a server's addresses, for example for a mail server; staff review it before it is set. hostname null withdraws a request, or asks staff to remove a record that is already live (status removal_pending until they do). Without ip it lists the server's addresses and their reverse DNS. Needs vm:write (vm:read to list).

Esquema de entrada

{
  "type": "object",
  "properties": {
    "server_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "ip": {
      "description": "An address from the list",
      "type": "string",
      "minLength": 2,
      "maxLength": 45
    },
    "hostname": {
      "description": "The name the address should point back to; null to withdraw",
      "anyOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 253
        },
        {
          "type": "null"
        }
      ]
    },
    "request_id": {
      "type": "string",
      "minLength": 8,
      "maxLength": 64,
      "pattern": "^[A-Za-z0-9_.:-]+$",
      "description": "An id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action."
    }
  },
  "required": [
    "server_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟡rename_server(server_id, hostname, name, request_id)

Change a server's hostname (the name the machine calls itself), its display name in the account, or both. Needs vm:write.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "server_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "hostname": {
      "type": "string",
      "minLength": 1,
      "maxLength": 253
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 60
    },
    "request_id": {
      "type": "string",
      "minLength": 8,
      "maxLength": 64,
      "pattern": "^[A-Za-z0-9_.:-]+$",
      "description": "An id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action."
    }
  },
  "required": [
    "server_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟡schedules(server_id, action, backup, power, request_id)

A server's automatic backup and power schedules. action get reads both. set_backup takes backup: {enabled, schedule: {type daily|weekly|monthly, time: {hour, minutes}, days} or null, limit 3|5|7|14|30 kept}; days is empty for daily, 1-7 for weekly, 1-31 for monthly. set_power takes power: {enabled, timezone (IANA, e.g. Europe/London), days (0 Sunday to 6), start "HH:MM" or null, stop "HH:MM" or null}. Needs vm:read to get, vm:write for backup, vm:power for power.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "server_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "action": {
      "type": "string",
      "enum": [
        "get",
        "set_backup",
        "set_power"
      ]
    },
    "backup": {
      "description": "Only for set_backup",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    },
    "power": {
      "description": "Only for set_power",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    },
    "request_id": {
      "type": "string",
      "minLength": 8,
      "maxLength": 64,
      "pattern": "^[A-Za-z0-9_.:-]+$",
      "description": "An id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action."
    }
  },
  "required": [
    "server_id",
    "action"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴iso(server_id, action, iso_image_id, confirm, request_id)

Boot a server from an ISO image, for a custom install or a rescue disk. action list shows the images this server can use. mount sets a STOPPED server to boot from iso_image_id; unmount detaches it so the server boots from its disk again. mount and unmount change how the server starts, so ask the person first and set confirm to the server id. list needs vm:read; mount and unmount need vm:destroy.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "server_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "action": {
      "type": "string",
      "enum": [
        "list",
        "mount",
        "unmount"
      ]
    },
    "iso_image_id": {
      "description": "Only for mount: from action list",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "confirm": {
      "description": "For mount and unmount: repeat the server id",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "request_id": {
      "type": "string",
      "minLength": 8,
      "maxLength": 64,
      "pattern": "^[A-Za-z0-9_.:-]+$",
      "description": "An id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action."
    }
  },
  "required": [
    "server_id",
    "action"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟡top_up(amount_minor, request_id)

Add funds to the account wallet: creates an unpaid funding invoice in the account currency and returns pay_url, a client-area link where the person pays it. Nothing is charged by this tool; the wallet grows only once the person pays. Agree the amount with the person first. amount_minor is whole minor units (1000 = 10.00). Needs a key with billing:pay and billing:read.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "amount_minor": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "request_id": {
      "type": "string",
      "minLength": 8,
      "maxLength": 64,
      "pattern": "^[A-Za-z0-9_.:-]+$",
      "description": "An id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action."
    }
  },
  "required": [
    "amount_minor",
    "request_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴add_ssh_keys(server_id, confirm, key_ids, public_key, name, ...)

Let SSH keys log in to a server as its administrator (root). Give key_ids of saved keys, or public_key to save a new key first and add it. The server must be running; keys already on it stay and nothing restarts. Windows servers take no SSH keys. confirm must repeat the server id, because this grants login to the machine. Needs a key with vm:destroy (and vm:write to save a new key). The account owner is told.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "server_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "confirm": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Repeat the server id"
    },
    "key_ids": {
      "default": [],
      "description": "Ids of saved keys, from the create_server question or the ssh_keys.list operation",
      "maxItems": 10,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 4,
        "maxLength": 64
      }
    },
    "public_key": {
      "description": "A new public key line, for example \"ssh-ed25519 AAAA... name\". Never a private key.",
      "type": "string",
      "minLength": 40,
      "maxLength": 8000
    },
    "name": {
      "description": "A label for the new key",
      "type": "string",
      "minLength": 1,
      "maxLength": 60
    },
    "request_id": {
      "type": "string",
      "minLength": 8,
      "maxLength": 64,
      "pattern": "^[A-Za-z0-9_.:-]+$",
      "description": "An id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action."
    }
  },
  "required": [
    "server_id",
    "confirm"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴reinstall_server(server_id, os, confirm, request_id)

ERASES THE WHOLE DISK of a server and installs a fresh operating system. Everything on it is lost and it is offline until the install finishes. Ask the person before calling this. confirm must repeat the server id. Needs a key with vm:destroy. The account owner is emailed.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "server_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "os": {
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "string",
          "minLength": 2,
          "maxLength": 60
        }
      ],
      "description": "Operating system name or part of one, for example \"Debian 12\", or its image id"
    },
    "confirm": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Repeat the server id"
    },
    "request_id": {
      "type": "string",
      "minLength": 8,
      "maxLength": 64,
      "pattern": "^[A-Za-z0-9_.:-]+$",
      "description": "An id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action."
    }
  },
  "required": [
    "server_id",
    "os",
    "confirm"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴reset_server_password(server_id, confirm, request_id)

Set a new administrator (root) password on a server and return it ONCE. The old password stops working. The password is a secret: give it only to the account owner and do not store it. confirm must repeat the server id. Needs a key with vm:destroy.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "server_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "confirm": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Repeat the server id"
    },
    "request_id": {
      "type": "string",
      "minLength": 8,
      "maxLength": 64,
      "pattern": "^[A-Za-z0-9_.:-]+$",
      "description": "An id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action."
    }
  },
  "required": [
    "server_id",
    "confirm"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴open_console(server_id, confirm)

Get a short-lived console (VNC over WebSocket) connection to a server. This is full interactive control of the machine, so treat the reply as a secret and give it only to the account owner. confirm must repeat the server id. Needs a key with vm:destroy.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "server_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "confirm": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Repeat the server id"
    }
  },
  "required": [
    "server_id",
    "confirm"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴cancel_service(service_id, confirm, reason, request_id)

Cancel a service (a server's id is also its service id). Billing stops now and this cannot be undone here. The server keeps running to the end of the paid period, then is suspended; once cancelled it can no longer be managed through this server. Ask the person before calling this. confirm must repeat the service id. Needs a key with services:cancel.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "service_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "confirm": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Repeat the service id"
    },
    "reason": {
      "type": "string",
      "maxLength": 255
    },
    "request_id": {
      "type": "string",
      "minLength": 8,
      "maxLength": 64,
      "pattern": "^[A-Za-z0-9_.:-]+$",
      "description": "An id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action."
    }
  },
  "required": [
    "service_id",
    "confirm"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢get_balance

Read the account wallet balance, in whole minor units with its currency. Check it before create_server or pay_invoice.

Esquema de entrada

{
  "type": "object",
  "properties": {},
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢list_invoices(unpaid_only)

List recent invoices with their total and status. Set unpaid_only to see what is still owed.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "unpaid_only": {
      "default": false,
      "type": "boolean"
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
⚪pay_invoice(invoice_id, max_amount_minor, request_id)

Pay one unpaid invoice from the account wallet. THIS SPENDS REAL MONEY: max_amount_minor is the most that may be taken (whole minor units). It takes the smaller of that, what the invoice owes and the wallet balance, so it can be a part payment. Needs a key with invoices:pay and billing:read.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "invoice_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "max_amount_minor": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "request_id": {
      "type": "string",
      "minLength": 8,
      "maxLength": 64,
      "pattern": "^[A-Za-z0-9_.:-]+$",
      "description": "An id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action."
    }
  },
  "required": [
    "invoice_id",
    "max_amount_minor",
    "request_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢proxy_status

Read the proxy balance, today's traffic, the default tier and where to connect. It never returns the proxy credential.

Esquema de entrada

{
  "type": "object",
  "properties": {},
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢proxy_spend(days)

Read the proxy traffic, request count and amount charged over the last 1, 7 or 30 days, in total and for each tier used.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "days": {
      "description": "1, 7 or 30; defaults to 1",
      "anyOf": [
        {
          "type": "number",
          "const": 1
        },
        {
          "type": "number",
          "const": 7
        },
        {
          "type": "number",
          "const": 30
        }
      ]
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢list_static_proxy_ips

List the dedicated static proxy IPs on the account: address, country, status and the day each is paid through. It never returns their credential.

Esquema de entrada

{
  "type": "object",
  "properties": {},
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢list_proxy_whitelist

List the IPv4 addresses allowed to use the proxy without a username and password, how many there are and the most the list can hold. Needs a key with proxy:whitelist.

Esquema de entrada

{
  "type": "object",
  "properties": {},
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴add_proxy_whitelist_ip(ip, request_id)

Add one public IPv4 address to the proxy whitelist. Any connection from that address is then accepted with no username or password and is charged to the account balance, so it is the same as giving that address the credential. Private and reserved addresses are refused; IPv6 is not supported. Needs a key with proxy:whitelist.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "ip": {
      "type": "string",
      "minLength": 7,
      "maxLength": 15,
      "description": "One public IPv4 address, for example 203.0.113.9"
    },
    "request_id": {
      "type": "string",
      "minLength": 8,
      "maxLength": 64,
      "pattern": "^[A-Za-z0-9_.:-]+$",
      "description": "An id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action."
    }
  },
  "required": [
    "ip"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴remove_proxy_whitelist_ip(ip, request_id)

Remove one IPv4 address from the proxy whitelist. Connections from it then need the credential, and are refused while whitelist-only mode is on. Needs a key with proxy:whitelist.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "ip": {
      "type": "string",
      "minLength": 7,
      "maxLength": 15,
      "description": "The IPv4 address to remove, as list_proxy_whitelist shows it"
    },
    "request_id": {
      "type": "string",
      "minLength": 8,
      "maxLength": 64,
      "pattern": "^[A-Za-z0-9_.:-]+$",
      "description": "An id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action."
    }
  },
  "required": [
    "ip"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢get_proxy_whitelist_only

Read whether the proxy accepts connections from whitelisted addresses only.

Esquema de entrada

{
  "type": "object",
  "properties": {},
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴set_proxy_whitelist_only(enabled, request_id)

Set whether the proxy accepts connections from whitelisted addresses only. With it on and an empty or wrong whitelist, every connection is refused, including ones with the correct credential. Turning it off restores access at once. Needs a key with proxy:whitelist.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean",
      "description": "true = whitelisted addresses only"
    },
    "request_id": {
      "type": "string",
      "minLength": 8,
      "maxLength": 64,
      "pattern": "^[A-Za-z0-9_.:-]+$",
      "description": "An id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action."
    }
  },
  "required": [
    "enabled"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴test_proxy(tier, country, session, request_id)

Send one request through the account's proxy to a fixed address-echo service and report whether it worked, the exit address, its location and how long it took. The target cannot be chosen. It is real traffic: a few kilobytes are charged to the proxy balance at the tested tier, so the balance must be positive. Needs a key with proxy:credentials.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "tier": {
      "description": "Tier to test, for example standard or mobile; defaults to standard",
      "type": "string",
      "maxLength": 32
    },
    "country": {
      "description": "Two-letter country code to exit from; omit for any country",
      "type": "string",
      "minLength": 2,
      "maxLength": 2
    },
    "session": {
      "description": "Sticky-session id; omit for a rotating connection",
      "type": "string",
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_-]+$"
    },
    "request_id": {
      "type": "string",
      "minLength": 8,
      "maxLength": 64,
      "pattern": "^[A-Za-z0-9_.:-]+$",
      "description": "An id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action."
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟡open_ticket(subject, message, department, request_id)

Open a support ticket read by PrivateByte staff. Never put passwords or keys in it. department is a name or part of one (for example "Technical" or "Billing"); it defaults to technical support. Needs a key with tickets:write.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "subject": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255
    },
    "message": {
      "type": "string",
      "minLength": 1,
      "maxLength": 16000
    },
    "department": {
      "default": "Technical",
      "type": "string",
      "minLength": 2,
      "maxLength": 60
    },
    "request_id": {
      "type": "string",
      "minLength": 8,
      "maxLength": 64,
      "pattern": "^[A-Za-z0-9_.:-]+$",
      "description": "An id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action."
    }
  },
  "required": [
    "subject",
    "message",
    "request_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢find_operation(query)

Search every operation of the PrivateByte API by words (for example "firewall rule", "reverse dns", "gateway key", "proxy whitelist"). Returns up to 8 matches with what each needs. Use it when no other tool fits, then run the match with call_operation.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "minLength": 2,
      "maxLength": 120
    }
  },
  "required": [
    "query"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴call_operation(operation, path_params, query, body, request_id)

Run any PrivateByte API operation by its name from find_operation. The operation's tier says what it can do: read changes nothing, safe is reversible, destructive loses data or causes downtime, money spends funds. Ask the person before a destructive or money operation. Destructive operations need their confirm value, money operations their ceiling, exactly as find_operation describes.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "operation": {
      "type": "string",
      "minLength": 3,
      "maxLength": 80,
      "description": "For example vm.firewall.add"
    },
    "path_params": {
      "default": {},
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "number"
          }
        ]
      }
    },
    "query": {
      "default": {},
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "number"
          },
          {
            "type": "boolean"
          }
        ]
      }
    },
    "body": {},
    "request_id": {
      "type": "string",
      "minLength": 8,
      "maxLength": 64,
      "pattern": "^[A-Za-z0-9_.:-]+$",
      "description": "An id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action."
    }
  },
  "required": [
    "operation"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

Comunidad

Califica este servidor

Evidencia

Observaciones recientes

verificadoversión no registrada44 herramientas