Skip to main content
Glama

LIST_WITHDRAWALS

Retrieve withdrawal history from Upbit cryptocurrency exchange to track transaction status, view currency details, and monitor account activity using paginated results.

Instructions

List withdrawals (requires private API)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
currencyNo
stateNo
pageNo
limitNo

Implementation Reference

  • The execute function that implements the LIST_WITHDRAWALS tool logic, authenticating and fetching withdrawal data from Upbit API.
    execute: async ({ currency, state, page, limit }: Params) => { ensurePrivateEnabled(); const baseURL = `${config.upbit.baseUrl}${config.upbit.apiBasePath}`; const client = createHttpClient(baseURL); const query = { page, limit, currency, state, }; const token = signJwtToken(query); const data = await fetchJson<unknown>(client, "/withdraws", { params: query, headers: { Authorization: `Bearer ${token}` }, }); return JSON.stringify(data, null, 2); },
  • Zod schema defining input parameters for the LIST_WITHDRAWALS tool: currency, state, page, and limit.
    const paramsSchema = z .object({ currency: z.string().optional(), state: z.string().optional(), page: z.number().int().min(1).default(1), limit: z.number().int().min(1).max(100).default(50), }) .strict();
  • src/index.ts:42-42 (registration)
    Registers the listWithdrawalsTool with the FastMCP server.
    server.addTool(listWithdrawalsTool);

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/IQAIcom/mcp-upbit'

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