madeonsol_me
Inspect your MadeOnSol API account status: current tier, daily/burst quota, remaining requests, subscription expiry, and per-feature usage. Use to self-throttle without rate-limit headers.
Instructions
Inspect your MadeOnSol API account — current tier, daily/burst quota state, remaining requests, subscription expiry, and per-feature usage (webhooks, copy-trade wallets, coordination rules, etc.). Use to self-throttle without parsing rate-limit headers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:536-544 (registration)Registration of the 'madeonsol_me' tool — defined via server.tool() with no input schema (empty {}). It calls restQuery('GET', '/me') to fetch account info.
server.tool( "madeonsol_me", "Inspect your MadeOnSol API account — current tier, daily/burst quota state, remaining requests, subscription expiry, and per-feature usage (webhooks, copy-trade wallets, coordination rules, etc.). Use to self-throttle without parsing rate-limit headers.", {}, { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true }, async () => ({ content: [{ type: "text" as const, text: await restQuery("GET", "/me") }], }) ); - src/index.ts:538-539 (schema)Schema for 'madeonsol_me': no input parameters (empty Zod schema {}) and read-only annotations.
"Inspect your MadeOnSol API account — current tier, daily/burst quota state, remaining requests, subscription expiry, and per-feature usage (webhooks, copy-trade wallets, coordination rules, etc.). Use to self-throttle without parsing rate-limit headers.", {}, - src/index.ts:541-543 (handler)Handler for 'madeonsol_me': an async function with no arguments that calls restQuery('GET', '/me') and returns the result as text content.
async () => ({ content: [{ type: "text" as const, text: await restQuery("GET", "/me") }], }) - src/index.ts:451-466 (helper)Helper function 'restQuery' used by the 'madeonsol_me' handler. It constructs an authenticated fetch to the MadeOnSol API v1 endpoint and returns the JSON response as a string.
async function restQuery(method: string, path: string, body?: unknown): Promise<string> { const headers: Record<string, string> = { "Content-Type": "application/json", ...apiKeyHeaders(), }; const res = await fetch(`${BASE_URL}/api/v1${path}`, { method, headers, ...(body ? { body: JSON.stringify(body) } : {}), }); if (!res.ok) { const text = await res.text().catch(() => ""); return `Error ${res.status}: ${text}`; } return JSON.stringify(await res.json(), null, 2); }