Skip to main content
Glama

yeepay-mcp

by yop-platform
random_num.js887 B
import { Args } from '@/runtime'; import { Input, Output } from "@/typings/random_order_id/random_order_id"; /** * Each file needs to export a function named `handler`. This function is the entrance to the Tool. * @param {Object} args.input - input parameters, you can get test input value by input.xxx. * @param {Object} args.logger - logger instance used to print logs, injected by runtime * @returns {*} The return data of the function, which should match the declared output parameters. * * Remember to fill in input/output in Metadata, it helps LLM to recognize and use tool. */ export async function handler({ input, logger: _logger }: Args<Input>): Promise<Output> { const { length } = input; const randomLength = Math.floor(Math.random() * length); const orderId = new Date().toISOString().replace(/\D/g, '') + randomLength; return { orderId, }; };

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/yop-platform/yeepay-mcp'

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