Skip to main content
Glama
enderekici

Trading 212 MCP Server

by enderekici

get_account_cash

Retrieve detailed cash balance information from Trading 212 accounts, including free, invested, blocked, and total amounts for portfolio tracking and account management.

Instructions

Get detailed cash balance information including free, invested, blocked, and total amounts

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler for 'get_account_cash' calls 'client.getAccountSummary()' and returns the serialized results.
    case 'get_account_info':
    case 'get_account_cash':
    case 'get_account_summary': {
      const summary = await client.getAccountSummary();
      return {
        content: [
          {
            type: 'text',
            text: JSON.stringify(summary, null, 2),
          },
        ],
      };
    }
  • src/index.ts:72-80 (registration)
    Registration of the 'get_account_cash' tool in the tool definitions array.
    {
      name: 'get_account_cash',
      description:
        'Get detailed cash balance information including free, invested, blocked, and total amounts',
      inputSchema: {
        type: 'object',
        properties: {},
      },
    },

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/enderekici/trading212-mcp'

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