Skip to main content
Glama

GET_ORDER

Retrieve a specific order from the Upbit cryptocurrency exchange using its unique identifier or UUID. This tool accesses private API data to provide detailed order information for tracking and analysis.

Instructions

Get a single Upbit order (requires private API)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uuidNo
identifierNo

Implementation Reference

  • The execute function that implements the core logic of the GET_ORDER tool, authenticating and fetching a single order from the Upbit API using either UUID or identifier.
    execute: async ({ uuid, identifier }: Params) => { ensurePrivateEnabled(); const baseURL = `${config.upbit.baseUrl}${config.upbit.apiBasePath}`; const client = createHttpClient(baseURL); const query: Record<string, string> = {}; if (uuid) query.uuid = uuid; if (identifier) query.identifier = identifier; const token = signJwtToken(query); const data = await fetchJson<unknown>(client, "/order", { params: query, headers: { Authorization: `Bearer ${token}` }, }); return JSON.stringify(data, null, 2); },
  • Zod schema defining the input parameters for the GET_ORDER tool: optional uuid or identifier (at least one required).
    const paramsSchema = z .object({ uuid: z.string().optional(), identifier: z.string().optional(), }) .refine((v) => v.uuid || v.identifier, { message: "Either uuid or identifier is required", });
  • src/index.ts:37-37 (registration)
    Registers the getOrderTool (named GET_ORDER) with the FastMCP server.
    server.addTool(getOrderTool);

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