Skip to main content
Glama

apply_certificate

Request a free SSL certificate for specified domains and site ID. Supports Let's Encrypt or Digicert options for single or wildcard domains.

Instructions

Applies for a free SSL certificate.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainsYesThe list of domain names, separated by commas. Example: "example.com,www.example.com"
siteIdYesSite ID. Example: 1234567890123. Reference Value Source: list_sites
typeYesThe type of certificate. Possible values: - lets_encrypt (Let's Encrypt certificate) - digicert_single (Digicert single-domain certificate) - digicert_wildcard (Digicert wildcard certificate)

Implementation Reference

  • The primary MCP tool handler for 'apply_certificate'. It receives the tool call request, invokes the underlying API service, and returns the response as MCP content.
    export const apply_certificate = async (request: CallToolRequest) => { const res = await api.applyCertificate( request.params.arguments as ApplyCertificateRequest, ); return { content: [{ type: 'text', text: JSON.stringify(res) }], success: true, }; };
  • Tool registration definition including name, description, and input schema for the 'apply_certificate' tool.
    export const APPLY_CERTIFICATE_TOOL: Tool = { name: 'apply_certificate', description: 'Applies for a free SSL certificate.', inputSchema: { type: 'object', properties: { siteId: { type: 'number', description: 'Site ID. Example: 1234567890123. Reference Value Source: list_sites', }, domains: { type: 'string', description: 'The list of domain names, separated by commas. Example: "example.com,www.example.com"', }, type: { type: 'string', description: "The type of certificate. Possible values: - lets_encrypt (Let's Encrypt certificate) - digicert_single (Digicert single-domain certificate) - digicert_wildcard (Digicert wildcard certificate) ", }, }, required: ['siteId', 'domains', 'type'], annotations: {}, }, };
  • Input schema definition for the 'apply_certificate' tool, specifying parameters siteId, domains, and type.
    inputSchema: { type: 'object', properties: { siteId: { type: 'number', description: 'Site ID. Example: 1234567890123. Reference Value Source: list_sites', }, domains: { type: 'string', description: 'The list of domain names, separated by commas. Example: "example.com,www.example.com"', }, type: { type: 'string', description: "The type of certificate. Possible values: - lets_encrypt (Let's Encrypt certificate) - digicert_single (Digicert single-domain certificate) - digicert_wildcard (Digicert wildcard certificate) ", }, }, required: ['siteId', 'domains', 'type'], annotations: {}, },
  • Inclusion of APPLY_CERTIFICATE_TOOL in the CERTIFICATE_LIST array, part of aggregating tools for MCP registration.
    export const CERTIFICATE_LIST = [ SET_CERTIFICATE_TOOL, APPLY_CERTIFICATE_TOOL, GET_CERTIFICATE_TOOL, DELETE_CERTIFICATE_TOOL, LIST_CERTIFICATES_TOOL, GET_CERTIFICATE_QUOTA_TOOL, ];
  • Helper method in the API service client that wraps the Alibaba Cloud ESA 'applyCertificate' call.
    applyCertificate(params: ApplyCertificateRequest) { const request = new ApplyCertificateRequest(params); return this.callApi( this.client.applyCertificate.bind(this.client) as ApiMethod< ApplyCertificateRequest, ApplyCertificateResponse >, 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