Skip to main content
Glama
TimeCyber

Email MCP Server

by TimeCyber

list_supported_providers

Lists available email providers supported for sending emails with attachments and multiple recipients through the Email MCP Server.

Instructions

列出支持的邮箱提供商

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The primary handler function for the 'list_supported_providers' tool. It generates a formatted list of all supported email providers from the EMAIL_CONFIGS constant, including names, domains, recommended protocols, and usage instructions.
    async listSupportedProviders() {
      let result = `📋 支持的邮箱提供商:\n\n`;
      
      for (const [provider, config] of Object.entries(EMAIL_CONFIGS)) {
        result += `🏢 ${config.name} (${provider})\n`;
        result += `   域名: ${config.domains.join(', ')}\n`;
        result += `   推荐协议: ${config.usePOP3 ? 'POP3' : 'IMAP'}\n`;
        result += `   示例: user@${config.domains[0]}\n\n`;
      }
    
      result += `💡 使用方法:\n`;
      result += `1. 使用 setup_email_account 工具\n`;
      result += `2. 填写完整邮箱地址和密码/授权码\n`;
      result += `3. 系统会自动识别并配置对应的邮箱服务器\n\n`;
      result += `⚠️  注意: 请确保已在对应邮箱中开启POP3/IMAP/SMTP服务并获取授权码!`;
    
      return {
        content: [{
          type: 'text',
          text: result
        }]
      };
    }
  • index.js:270-278 (registration)
    Tool registration in the ListToolsRequestSchema handler. Defines the tool name, description, and empty input schema (no parameters required).
    {
      name: 'list_supported_providers',
      description: '列出支持的邮箱提供商',
      inputSchema: {
        type: 'object',
        properties: {},
        required: []
      }
    },
  • Input schema for the 'list_supported_providers' tool, specifying an empty object (no input parameters needed).
    inputSchema: {
      type: 'object',
      properties: {},
      required: []
    }
  • The EMAIL_CONFIGS constant defining all supported email providers' configurations (servers, domains, protocols), which is used by the listSupportedProviders handler to generate the list.
    const EMAIL_CONFIGS = {
      'qq': {
        name: 'QQ邮箱',
        domains: ['qq.com'],
        smtp: { host: 'smtp.qq.com', port: 587, secure: false },
        imap: { host: 'imap.qq.com', port: 993, secure: true },
        pop3: { host: 'pop.qq.com', port: 995, secure: true },
        usePOP3: false
      },
      '163': {
        name: '网易邮箱',
        domains: ['163.com', '126.com', 'yeah.net'],
        smtp: { host: 'smtp.163.com', port: 465, secure: true },
        imap: { host: 'imap.163.com', port: 993, secure: true },
        pop3: { host: 'pop.163.com', port: 995, secure: true },
        usePOP3: true // 163邮箱推荐使用POP3
      },
      // 'netease-enterprise': {
      //   name: '网易企业邮箱',
      //   domains: [], // 企业域名不固定
      //   smtp: { host: 'smtphz.qiye.163.com', port: 587, secure: false }, // 使用587端口和STARTTLS
      //   imap: { host: 'imaphz.qiye.163.com', port: 993, secure: true },
      //   pop3: { host: 'pophz.qiye.163.com', port: 995, secure: true },
      //   usePOP3: true // 网易企业邮箱推荐使用POP3
      // },
      'gmail': {
        name: 'Gmail',
        domains: ['gmail.com', 'googlemail.com'],
        smtp: { host: 'smtp.gmail.com', port: 587, secure: true }, // 从2025年5月1日起,需要OAuth认证
        imap: { host: 'imap.gmail.com', port: 993, secure: true },
        pop3: { host: 'pop.gmail.com', port: 995, secure: true },
        usePOP3: false, // Gmail推荐使用IMAP
        requiresOAuth: true, // 2025年5月1日后必须使用OAuth,不支持密码认证
        note: '需要在Gmail设置中启用POP/IMAP,Google Workspace需要管理员启用'
      },
      'outlook': {
        name: 'Outlook/Hotmail',
        domains: ['outlook.com', 'hotmail.com', 'live.com', 'msn.com'],
        smtp: { host: 'smtp-mail.outlook.com', port: 587, secure: false },
        imap: { host: 'outlook.office365.com', port: 993, secure: true },
        pop3: { host: 'outlook.office365.com', port: 995, secure: true },
        usePOP3: false
      },
      'exmail': {
        name: '腾讯企业邮箱',
        domains: ['exmail.qq.com'],
        smtp: { host: 'smtp.exmail.qq.com', port: 465, secure: true },
        imap: { host: 'imap.exmail.qq.com', port: 993, secure: true },
        pop3: { host: 'pop.exmail.qq.com', port: 995, secure: true },
        usePOP3: false
      },
      'aliyun': {
        name: '阿里云邮箱',
        domains: ['aliyun.com', 'alibaba-inc.com'],
        smtp: { host: 'smtp.mxhichina.com', port: 465, secure: true },
        imap: { host: 'imap.mxhichina.com', port: 993, secure: true },
        pop3: { host: 'pop.mxhichina.com', port: 995, secure: true },
        usePOP3: false
      },
      'sina': {
        name: '新浪邮箱',
        domains: ['sina.com', 'sina.cn'],
        smtp: { host: 'smtp.sina.com', port: 587, secure: false },
        imap: { host: 'imap.sina.com', port: 993, secure: true },
        pop3: { host: 'pop.sina.com', port: 995, secure: true },
        usePOP3: false
      },
      'sohu': {
        name: '搜狐邮箱',
        domains: ['sohu.com'],
        smtp: { host: 'smtp.sohu.com', port: 25, secure: false },
        imap: { host: 'imap.sohu.com', port: 993, secure: true },
        pop3: { host: 'pop.sohu.com', port: 995, secure: true },
        usePOP3: false
      }
    };
  • index.js:354-355 (registration)
    Dispatch case in the CallToolRequestSchema handler that routes calls to the listSupportedProviders method.
    case 'list_supported_providers':
      return await this.listSupportedProviders(args);
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries full burden. It states what the tool does (lists providers) but doesn't disclose behavioral traits like whether this is a read-only operation, if it requires authentication, what format the output takes, or if there are rate limits. For a tool with zero annotation coverage, this is a significant gap in behavioral context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence in Chinese that directly states the tool's purpose with zero wasted words. It's appropriately sized for a simple listing tool and front-loads the core functionality immediately.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (0 parameters, no output schema), the description is minimally adequate. It states the purpose but lacks context about output format, authentication needs, or when to use it relative to siblings. For a tool with no annotations and no output schema, the description should ideally provide more behavioral guidance to compensate.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has 0 parameters with 100% schema description coverage, so the schema already fully documents the input (none required). The description doesn't need to add parameter information, and it doesn't contradict the schema. A baseline of 4 is appropriate for zero-parameter tools where the schema handles all input documentation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description '列出支持的邮箱提供商' (List supported email providers) clearly states the verb (list) and resource (email providers). It distinguishes from siblings like configure_email_server or send_email by focusing on provider enumeration rather than configuration or sending operations. However, it doesn't explicitly differentiate from setup_email_account or test_email_connection which might involve providers.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., whether this should be called before setup_email_account), exclusions, or relationships to sibling tools like configure_email_server or setup_email_account. The agent must infer usage from the tool name alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other 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/TimeCyber/email-mcp'

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