Skip to main content
Glama
IQAIcom

Upbit MCP Server

by IQAIcom

GET_WITHDRAWAL

Retrieve withdrawal transaction details from Upbit using a specific UUID to track cryptocurrency transfers and verify transaction status.

Instructions

Get a single withdrawal by UUID (requires private API)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uuidYes

Implementation Reference

  • The execute function that implements the core logic of the GET_WITHDRAWAL tool, authenticating with Upbit API and fetching withdrawal data by UUID.
    execute: async ({ uuid }: Params) => {
    	ensurePrivateEnabled();
    	const baseURL = `${config.upbit.baseUrl}${config.upbit.apiBasePath}`;
    	const client = createHttpClient(baseURL);
    	const query = { uuid };
    	const token = signJwtToken(query);
    	const data = await fetchJson<unknown>(client, "/withdraw", {
    		params: query,
    		headers: { Authorization: `Bearer ${token}` },
    	});
    	return JSON.stringify(data, null, 2);
    },
  • Zod schema defining the input parameters (uuid: string) and inferred TypeScript type for the tool.
    const paramsSchema = z.object({ uuid: z.string().min(1) });
    
    type Params = z.infer<typeof paramsSchema>;
  • src/index.ts:41-41 (registration)
    Registers the getWithdrawalTool (named GET_WITHDRAWAL) with the FastMCP server instance.
    server.addTool(getWithdrawalTool);
  • src/index.ts:17-17 (registration)
    Imports the getWithdrawalTool from its implementation file for registration.
    import { getWithdrawalTool } from "./tools/get-withdrawal.js";
  • Complete tool object definition including name, description, parameters schema, and execute handler.
    export const getWithdrawalTool = {
    	name: "GET_WITHDRAWAL",
    	description: "Get a single withdrawal by UUID (requires private API)",
    	parameters: paramsSchema,
    	execute: async ({ uuid }: Params) => {
    		ensurePrivateEnabled();
    		const baseURL = `${config.upbit.baseUrl}${config.upbit.apiBasePath}`;
    		const client = createHttpClient(baseURL);
    		const query = { uuid };
    		const token = signJwtToken(query);
    		const data = await fetchJson<unknown>(client, "/withdraw", {
    			params: query,
    			headers: { Authorization: `Bearer ${token}` },
    		});
    		return JSON.stringify(data, null, 2);
    	},
    } as const;

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