get_default_currency
Retrieve the default currency for your company to ensure accurate billing and financial reporting.
Instructions
Get the company default currency. GET /currencies/default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The handler function that executes the get_default_currency tool logic. It delegates to currencyService.getDefaultCurrency(client).
async function handler(client: Client, _args: Record<string, unknown> | undefined) { return handleToolCall(() => currencyService.getDefaultCurrency(client)); } - Input schema definition for the tool. No input parameters required (empty object).
const definition = { name: "get_default_currency", description: "Get the company default currency. GET /currencies/default.", inputSchema: { type: "object" as const, properties: {}, required: [], }, }; - src/tools/currencies/index.ts:15-25 (registration)The tool is registered via registerCurrencyTools() which returns an array including getDefaultCurrencyTool.
export function registerCurrencyTools(): Tool[] { return [ listCurrenciesTool, getCurrencyTool, createCurrencyTool, updateCurrencyTool, deleteCurrencyTool, getDefaultCurrencyTool, setDefaultCurrencyTool, ]; } - src/tools/currencies/index.ts:9-9 (registration)Import statement registering getDefaultCurrencyTool from its module.
import { getDefaultCurrencyTool } from "./getDefaultCurrency.js"; - The service helper that makes the actual HTTP GET request to /currencies/default endpoint.
export async function getDefaultCurrency(client: Client): Promise<unknown> { return client.get<unknown>("/currencies/default"); }