Real accounts and the MetaTrader terminals they live in: list the terminals this computer has, start one, connect it, switch it to another saved account, read an account, make a paper copy of it, or ask the person to forget one. Every change that touches a person's MetaTrader is asked on Bentrix's own sheet.
Reached from a connected client as client.accounts in Python, client.accounts in JavaScript, client.accounts() in Rust — each tool below shows its call in every language.
account_forget#
Ask the person to forget an account
Opens Bentrix's own sheet that forgets a real account - or every account on its server - with its connection and its workbenches; the person forgets it or keeps it. Answers a job: completed when it is gone, failed when the person kept it.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
account | string | yes | — | The account's uri, as get_state gives it. |
whole_server | boolean | — | false | Every account on the same server, as the broker row's menu forgets them. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "account_forget",
"arguments": {
"account": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.accounts
def account_forget(self, account: str, *, whole_server: Optional[bool] = None) -> _Job[Dict[str, Any]]JavaScript
client.accounts
accountForget(args)C#
client.Accounts
public Task<Job> AccountForget(string account, bool? wholeServer = null, CancellationToken ct = default)Go
client.Accounts
func (a *AccountsAPI) AccountForget(ctx context.Context, args AccountsAccountForgetArgs) (*Job, error)Java
client.accounts
public Job accountForget(AccountForgetArgs args)C++
client.accounts
Job account_forget(const AccountForgetArgs &args)Julia
client.accounts
account_forget = (account; whole_server = nothing)R
client$accounts
`account_forget` = function(account, whole_server = NULL)Rust
client.accounts()
pub fn account_forget(&self, args: AccountsAccountForgetArgs) -> Result<Job<'a>, Error>account_read#
Read the sign-in and what the account holds
Answers whether this install is signed in and the account's subject when it is; whether this run reaches Bentrix's sign-in service; the ways in the service offers (phone, email) and whether they were read; a sign-in under way, through which door and how it stands; the sentence the last sign-in ended on; and what the account holds - its tier, the feature map's version, and each feature's grant (allowed, limited with its count, refused with the tier that holds it, or unknown) with whose word it stands on (the account's answer, the published free column, or the build's seed). Signing in, typing a code and signing out are the person's own.
Takes no arguments.
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "account_read",
"arguments": {},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.accounts
def account_read(self) -> Dict[str, Any]JavaScript
client.accounts
accountRead(args)C#
client.Accounts
public Task<JsonNode?> AccountRead(CancellationToken ct = default)Go
client.Accounts
func (a *AccountsAPI) AccountRead(ctx context.Context) (any, error)Java
client.accounts
public Object accountRead()C++
client.accounts
Json account_read()Julia
client.accounts
account_read = ()R
client$accounts
`account_read` = function()Rust
client.accounts()
pub fn account_read(&self) -> Result<Value, Error>paper_create#
Make a paper workbench of a real account
Makes a paper workbench on a real account's live prices, trading on Bentrix's own venue and never reaching the broker, as the account's new workbench sheet does with Orders: Paper; only the opening balance is chosen. Refused while the account is not the one MetaTrader is on. Answers the workbench.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
account | string | yes | — | The real account the paper workbench copies, as get_state gives it. |
opening_balance | number | — | — | What it opens on, in the account's currency; the sheet's own default when omitted. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "paper_create",
"arguments": {
"account": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.accounts
def paper_create(self, account: str, *, opening_balance: Optional[float] = None) -> Dict[str, Any]JavaScript
client.accounts
paperCreate(args)C#
client.Accounts
public Task<JsonNode?> PaperCreate(string account, double? openingBalance = null, CancellationToken ct = default)Go
client.Accounts
func (a *AccountsAPI) PaperCreate(ctx context.Context, args AccountsPaperCreateArgs) (any, error)Java
client.accounts
public Object paperCreate(PaperCreateArgs args)C++
client.accounts
Json paper_create(const PaperCreateArgs &args)Julia
client.accounts
paper_create = (account; opening_balance = nothing)R
client$accounts
`paper_create` = function(account, opening_balance = NULL)Rust
client.accounts()
pub fn paper_create(&self, args: AccountsPaperCreateArgs) -> Result<Value, Error>terminal_connect#
Connect to a MetaTrader terminal
Connects Bentrix to a terminal's account, as its card's Connect does on the Sources sheet: the account and its REAL workbench appear in get_state when the connection stands. It may restart a MetaTrader that has nothing of Bentrix inside. Answers that the connection is under way.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
terminal | integer | yes | — | The terminal's place in terminals_list. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "terminal_connect",
"arguments": {
"terminal": 1
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.accounts
def terminal_connect(self, terminal: int) -> Dict[str, Any]JavaScript
client.accounts
terminalConnect(args)C#
client.Accounts
public Task<JsonNode?> TerminalConnect(long terminal, CancellationToken ct = default)Go
client.Accounts
func (a *AccountsAPI) TerminalConnect(ctx context.Context, args AccountsTerminalConnectArgs) (any, error)Java
client.accounts
public Object terminalConnect(TerminalConnectArgs args)C++
client.accounts
Json terminal_connect(const TerminalConnectArgs &args)Julia
client.accounts
terminal_connect = (terminal)R
client$accounts
`terminal_connect` = function(terminal)Rust
client.accounts()
pub fn terminal_connect(&self, args: AccountsTerminalConnectArgs) -> Result<Value, Error>terminal_start#
Open the MetaTrader of a real account
Starts the MetaTrader a real account was connected through, as its row's Open MetaTrader does. Answers that it was asked.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
account | string | yes | — | The account's uri, as get_state gives it. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "terminal_start",
"arguments": {
"account": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.accounts
def terminal_start(self, account: str) -> Dict[str, Any]JavaScript
client.accounts
terminalStart(args)C#
client.Accounts
public Task<JsonNode?> TerminalStart(string account, CancellationToken ct = default)Go
client.Accounts
func (a *AccountsAPI) TerminalStart(ctx context.Context, args AccountsTerminalStartArgs) (any, error)Java
client.accounts
public Object terminalStart(TerminalStartArgs args)C++
client.accounts
Json terminal_start(const TerminalStartArgs &args)Julia
client.accounts
terminal_start = (account)R
client$accounts
`terminal_start` = function(account)Rust
client.accounts()
pub fn terminal_start(&self, args: AccountsTerminalStartArgs) -> Result<Value, Error>terminal_switch_account#
Switch MetaTrader to a real account
Switches the MetaTrader that is on another account to this real account, as the account row's Switch does: in place when MetaTrader can, by a restart when only a restart can; refused with the row's own reason when it is not offered. Answers that the switch was asked.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
account | string | yes | — | The account's uri, as get_state gives it. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "terminal_switch_account",
"arguments": {
"account": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.accounts
def terminal_switch_account(self, account: str) -> Dict[str, Any]JavaScript
client.accounts
terminalSwitchAccount(args)C#
client.Accounts
public Task<JsonNode?> TerminalSwitchAccount(string account, CancellationToken ct = default)Go
client.Accounts
func (a *AccountsAPI) TerminalSwitchAccount(ctx context.Context, args AccountsTerminalSwitchAccountArgs) (any, error)Java
client.accounts
public Object terminalSwitchAccount(TerminalSwitchAccountArgs args)C++
client.accounts
Json terminal_switch_account(const TerminalSwitchAccountArgs &args)Julia
client.accounts
terminal_switch_account = (account)R
client$accounts
`terminal_switch_account` = function(account)Rust
client.accounts()
pub fn terminal_switch_account(&self, args: AccountsTerminalSwitchAccountArgs) -> Result<Value, Error>terminals_list#
Read the MetaTrader terminals
Answers the MetaTrader terminals the drivers found - each one's place in the list, the label that names where it lives, the server it was last on and whether it runs - or that the look is still under way.
Takes no arguments.
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "terminals_list",
"arguments": {},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.accounts
def terminals_list(self) -> Dict[str, Any]JavaScript
client.accounts
terminalsList(args)C#
client.Accounts
public Task<JsonNode?> TerminalsList(CancellationToken ct = default)Go
client.Accounts
func (a *AccountsAPI) TerminalsList(ctx context.Context) (any, error)Java
client.accounts
public Object terminalsList()C++
client.accounts
Json terminals_list()Julia
client.accounts
terminals_list = ()R
client$accounts
`terminals_list` = function()Rust
client.accounts()
pub fn terminals_list(&self) -> Result<Value, Error>