Skip to main content
Glama
paperinvest

Paper MCP Server

by paperinvest

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
NameRequiredDescriptionDefault
accountIdYesAccount ID to freeze

Implementation Reference

  • 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;
  • 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 }; });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/paperinvest/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server