GET_DEPOSIT
Retrieve a specific deposit record from your Upbit account using its unique UUID. Requires private API access.
Instructions
Get a single deposit by UUID (requires private API)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes |
Implementation Reference
- src/tools/get-deposit.ts:10-26 (handler)The handler/execute function for GET_DEPOSIT tool. Calls the Upbit /deposit API with a JWT-signed query containing the deposit UUID, and returns the response as JSON.
export const getDepositTool = { name: "GET_DEPOSIT", description: "Get a single deposit 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, "/deposit", { params: query, headers: { Authorization: `Bearer ${token}` }, }); return JSON.stringify(data, null, 2); }, } as const; - src/tools/get-deposit.ts:6-6 (schema)Zod schema defining the required input parameter: a non-empty string 'uuid'.
const paramsSchema = z.object({ uuid: z.string().min(1) }); - src/index.ts:48-48 (registration)Registration of the getDepositTool on the FastMCP server instance.
server.addTool(getDepositTool); - src/index.ts:9-9 (registration)Import of the getDepositTool from the get-deposit module into the main server entry point.
import { getDepositTool } from "./tools/get-deposit.js"; - src/tools/get-deposit.ts:4-4 (helper)Imports for helper utilities: ensurePrivateEnabled checks private API access is configured, signJwtToken signs the query parameters for authenticated requests.
import { ensurePrivateEnabled, signJwtToken } from "../lib/upbit-auth.js";