freeze_account
Temporarily suspend trading activity for a specific account to prevent unauthorized transactions or manage account access securely. Requires the account ID as input.
Instructions
Freeze a trading account
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accountId | Yes | Account ID to freeze |
Implementation Reference
- src/index.ts:417-419 (handler)Executes the freeze_account tool by sending a PUT request to the Paper Invest API endpoint `/accounts/${accountId}/freeze`.case 'freeze_account': response = await api.put(`/accounts/${args.accountId}/freeze`); break;
- src/index.ts:95-105 (schema)Defines the tool metadata including name, description, and input schema for 'freeze_account', which requires an 'accountId' string.{ name: 'freeze_account', description: 'Freeze a trading account', inputSchema: { type: 'object', properties: { accountId: { type: 'string', description: 'Account ID to freeze' } }, required: ['accountId'] } },
- src/index.ts:388-392 (registration)Registers the list of tools (including freeze_account) with the MCP server via ListToolsRequestHandler.server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools }; });