Skip to main content
Glama

get_site_pause

Check if a website's ESA proxy configuration is paused by providing its site ID. Use this tool to verify proxy status and manage website security settings.

Instructions

Queries the ESA proxy configuration of a website.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
siteIdYesThe website ID, which can be obtained by calling the [ListSites] operation.

Implementation Reference

  • The handler function that implements the core logic of the 'get_site_pause' tool by invoking the API service with the provided arguments and returning a formatted response.
    export const get_site_pause = async (request: CallToolRequest) => {
      const res = await api.getSitePause(
        request.params.arguments as GetSitePauseRequest,
      );
    
      return {
        content: [{ type: 'text', text: JSON.stringify(res) }],
        success: true,
      };
    };
  • Tool registration exporting the Tool object with name 'get_site_pause', description, and input schema definition.
    export const GET_SITE_PAUSE_TOOL: Tool = {
      name: 'get_site_pause',
      description: 'Queries the ESA proxy configuration of a website.',
      inputSchema: {
        type: 'object',
        properties: {
          siteId: {
            type: 'number',
            description:
              'The website ID, which can be obtained by calling the [ListSites] operation.',
            examples: ['123456****'],
          },
        },
        required: ['siteId'],
        annotations: {
          readOnlyHint: true,
          destructiveHint: false,
          idempotentHint: true,
          openWorldHint: false,
        },
      },
    };
  • Central registration of all tool handlers, including 'get_site_pause'.
    export const esaHandlers: ToolHandlers = {
      site_active_list,
      site_match,
      site_route_list,
      site_record_list,
      routine_create,
      routine_code_commit,
      routine_delete,
      routine_list,
      routine_get,
      routine_code_deploy,
      routine_route_list,
      deployment_delete,
      route_create,
      route_delete,
      route_update,
      route_get,
      er_record_create,
      er_record_delete,
      er_record_list,
      html_deploy,
      create_site,
      update_site_pause,
      get_site_pause,
      create_site_mx_record,
      create_site_ns_record,
      create_site_txt_record,
      create_site_cname_record,
      create_site_a_or_aaaa_record,
      update_record,
      list_records,
      get_record,
      delete_record,
      update_ipv6,
      get_ipv6,
      update_managed_transform,
      get_managed_transform,
      set_certificate,
      apply_certificate,
      get_certificate,
      delete_certificate,
      list_certificates,
      get_certificate_quota,
      list_sites,
    };
  • Registration of site-related tools list including GET_SITE_PAUSE_TOOL.
    export const ESA_OPENAPI_SITE_LIST = [
      LIST_SITES_TOOL,
      CREATE_SITE_TOOL,
      UPDATE_SITE_PAUSE_TOOL,
      GET_SITE_PAUSE_TOOL,
      UPDATE_RECORD_TOOL,
      CREATE_SITE_MX_RECORD_TOOL,
      CREATE_SITE_NS_RECORD_TOOL,
      CREATE_SITE_TXT_RECORD_TOOL,
      CREATE_SITE_CNAME_RECORD_TOOL,
      CREATE_SITE_A_OR_AAAA_RECORD_TOOL,
      DELETE_RECORD_TOOL,
      LIST_RECORDS_TOOL,
      GET_RECORD_TOOL,
    ];
  • Helper method in the API service client that performs the actual Alibaba Cloud ESA API call for getting site pause status.
    getSitePause(params: GetSitePauseRequest) {
      const request = new GetSitePauseRequest(params);
      return this.callApi(
        this.client.getSitePause.bind(this.client) as ApiMethod<
          GetSitePauseRequest,
          GetSitePauseResponse
        >,
        request,
      );
    }

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/aliyun/mcp-server-esa'

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