Skip to main content
Glama

Gotas Commerce MCP Server

index.js794 B
function throttle(function_, wait) { if (typeof function_ !== 'function') { throw new TypeError(`Expected the first argument to be a \`function\`, got \`${typeof function_}\`.`); } // TODO: Add `wait` validation too in the next major version. let timeoutId; let lastCallTime = 0; return function throttled(...arguments_) { // eslint-disable-line func-names clearTimeout(timeoutId); const now = Date.now(); const timeSinceLastCall = now - lastCallTime; const delayForNextCall = wait - timeSinceLastCall; if (delayForNextCall <= 0) { lastCallTime = now; function_.apply(this, arguments_); } else { timeoutId = setTimeout(() => { lastCallTime = Date.now(); function_.apply(this, arguments_); }, delayForNextCall); } }; } module.exports = throttle;

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/caiovicentino/mcpGOTAS'

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