Skip to main content
Glama
bcharleson

Instantly MCP Server

get_account_details

Retrieve account details including warmup status, SMTP settings, and campaign eligibility for email marketing management.

Instructions

Get detailed information about a specific account including warmup status, SMTP settings, and eligibility for campaigns.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
emailYesEmail address of the account to inspect

Implementation Reference

  • Handler implementation for 'get_account_details' tool (backward compatibility alias). Checks for required 'email' argument and fetches account details via API call to `/accounts/{email}`.
    case 'get_account':
    case 'get_account_details':  // Backward compatibility
    case 'get_account_info': {   // Backward compatibility
      console.error(`[Instantly MCP] 👤 Executing get_account (called as: ${name})...`);
    
      if (!args.email) {
        throw new McpError(ErrorCode.InvalidParams, 'Email parameter is required');
      }
    
      const accountResult = await makeInstantlyRequest(`/accounts/${args.email}`, {}, apiKey);
    
      return {
        content: [
          {
            type: 'text',
            text: JSON.stringify({
              success: true,
              account: accountResult,
              message: 'Account details retrieved successfully'
            }, null, 2)
          }
        ]
      };
    }
  • Zod input schema for get_account_details: requires a valid 'email' field.
    export const GetAccountDetailsSchema = z.object({
      email: EmailSchema
    });
  • Helper function to validate input arguments for get_account_details using Zod schema and convert errors to MCP format.
    export function validateGetAccountDetailsData(args: unknown): z.infer<typeof GetAccountDetailsSchema> {
      return validateWithSchema(GetAccountDetailsSchema, args, 'get_account_details');
    }
  • Registration of the get_account_details validator in the central TOOL_VALIDATORS mapping object.
    'get_account_details': validateGetAccountDetailsData,
  • Tool definition/registration for consolidated 'get_account' tool (includes get_account_details functionality per comment at line 6). Used in TOOLS_DEFINITION.
    {
      name: 'get_account',
      title: 'Get Account',
      description: 'Get account details, warmup status, and campaign eligibility by email',
      annotations: { readOnlyHint: true },
      inputSchema: {
        type: 'object',
        properties: {
          email: { type: 'string', description: 'Account email address' }
        },
        required: ['email']
      }
    },

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/bcharleson/Instantly-MCP'

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