Skip to main content
Glama
LamboPoewert

MadeOnSol — Solana memecoin intelligence

madeonsol_copytrade_create

Create a copy-trade rule to mirror trades from specified Solana wallets, with configurable sizing, delivery mode, and optional trade side filter.

Instructions

Create a copy-trade rule. Returns webhook_secret ONCE on creation when delivery_mode includes 'webhook' — store it to verify HMAC signatures. PRO=5 source_wallets/rule, ULTRA=50.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
source_walletsYesWallets to mirror (base58)
sizing_amountYesAmount used by the chosen sizing_mode
nameNoOptional human label
min_trade_solNoMinimum source-wallet trade size to fire a signal
only_actionNoFilter to one side (default 'both')
sizing_modeNoHow sizing_amount is interpreted
delivery_modeNoWhere to deliver fired signals
webhook_urlNoRequired when delivery_mode includes 'webhook'

Implementation Reference

  • The handler logic for madeonsol_copytrade_create tool. It constructs a POST request body from the provided arguments (source_wallets, sizing_amount, and optional fields like name, min_trade_sol, only_action, sizing_mode, delivery_mode, webhook_url) and calls restQuery to POST to '/copytrade/subscriptions'.
    server.tool(
      "madeonsol_copytrade_create",
      "Create a copy-trade rule. Returns webhook_secret ONCE on creation when delivery_mode includes 'webhook' — store it to verify HMAC signatures. PRO=5 source_wallets/rule, ULTRA=50.",
      {
        source_wallets: z.array(z.string()).min(1).max(50).describe("Wallets to mirror (base58)"),
        sizing_amount: z.number().describe("Amount used by the chosen sizing_mode"),
        name: z.string().optional().describe("Optional human label"),
        min_trade_sol: z.number().optional().describe("Minimum source-wallet trade size to fire a signal"),
        only_action: z.enum(["buy", "sell", "both"]).optional().describe("Filter to one side (default 'both')"),
        sizing_mode: z.enum(["fixed", "proportional", "percent_source"]).optional().describe("How sizing_amount is interpreted"),
        delivery_mode: z.enum(["webhook", "websocket", "both"]).optional().describe("Where to deliver fired signals"),
        webhook_url: z.string().url().optional().describe("Required when delivery_mode includes 'webhook'"),
      },
      { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true },
      async (args) => {
        const body: Record<string, unknown> = { source_wallets: args.source_wallets, sizing_amount: args.sizing_amount };
        for (const k of ["name", "min_trade_sol", "only_action", "sizing_mode", "delivery_mode", "webhook_url"] as const) {
          if (args[k] !== undefined) body[k] = args[k];
        }
        return { content: [{ type: "text" as const, text: await restQuery("POST", "/copytrade/subscriptions", body) }] };
      }
    );
  • Zod schema defining input parameters for madeonsol_copytrade_create: source_wallets (required, array of 1-50 base58 strings), sizing_amount (required number), plus optional fields: name, min_trade_sol, only_action, sizing_mode, delivery_mode, webhook_url.
    {
      source_wallets: z.array(z.string()).min(1).max(50).describe("Wallets to mirror (base58)"),
      sizing_amount: z.number().describe("Amount used by the chosen sizing_mode"),
      name: z.string().optional().describe("Optional human label"),
      min_trade_sol: z.number().optional().describe("Minimum source-wallet trade size to fire a signal"),
      only_action: z.enum(["buy", "sell", "both"]).optional().describe("Filter to one side (default 'both')"),
      sizing_mode: z.enum(["fixed", "proportional", "percent_source"]).optional().describe("How sizing_amount is interpreted"),
      delivery_mode: z.enum(["webhook", "websocket", "both"]).optional().describe("Where to deliver fired signals"),
      webhook_url: z.string().url().optional().describe("Required when delivery_mode includes 'webhook'"),
    },
  • src/index.ts:688-709 (registration)
    The tool is registered via server.tool() call with name 'madeonsol_copytrade_create'. It is conditionally registered only when hasRestAuth (i.e., authMode === 'madeonsol') is true, inside the Webhook & Streaming tools block starting at line 449.
    server.tool(
      "madeonsol_copytrade_create",
      "Create a copy-trade rule. Returns webhook_secret ONCE on creation when delivery_mode includes 'webhook' — store it to verify HMAC signatures. PRO=5 source_wallets/rule, ULTRA=50.",
      {
        source_wallets: z.array(z.string()).min(1).max(50).describe("Wallets to mirror (base58)"),
        sizing_amount: z.number().describe("Amount used by the chosen sizing_mode"),
        name: z.string().optional().describe("Optional human label"),
        min_trade_sol: z.number().optional().describe("Minimum source-wallet trade size to fire a signal"),
        only_action: z.enum(["buy", "sell", "both"]).optional().describe("Filter to one side (default 'both')"),
        sizing_mode: z.enum(["fixed", "proportional", "percent_source"]).optional().describe("How sizing_amount is interpreted"),
        delivery_mode: z.enum(["webhook", "websocket", "both"]).optional().describe("Where to deliver fired signals"),
        webhook_url: z.string().url().optional().describe("Required when delivery_mode includes 'webhook'"),
      },
      { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true },
      async (args) => {
        const body: Record<string, unknown> = { source_wallets: args.source_wallets, sizing_amount: args.sizing_amount };
        for (const k of ["name", "min_trade_sol", "only_action", "sizing_mode", "delivery_mode", "webhook_url"] as const) {
          if (args[k] !== undefined) body[k] = args[k];
        }
        return { content: [{ type: "text" as const, text: await restQuery("POST", "/copytrade/subscriptions", body) }] };
      }
    );
  • The restQuery helper function used by the copy-trade create handler. Sends authenticated HTTP requests (POST/GET/PATCH/DELETE) to the MadeOnSol API at BASE_URL/api/v1/..., serializing JSON bodies and returning parsed JSON or error text.
    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);
    }
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description adds behavioral context beyond annotations by noting the one-time return of webhook_secret and wallet limits (PRO=5, ULTRA=50). It does not contradict annotations, which are non-conflicting.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences with no wasted words. The first sentence states the purpose, and the second sentence adds critical usage info. It is front-loaded and efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the absence of an output schema, the description lacks details about the return value (e.g., the rule object) beyond the webhook_secret condition. It covers purpose and key behaviors but is incomplete for a full understanding of the tool's response.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so baseline is 3. The description does not add significant per-parameter details beyond the schema; it only provides high-level context about wallet limits and secret handling.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Create a copy-trade rule', which is a specific verb+resource. It differentiates from sibling tools like update/delete via the create action and mentions unique return behavior.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context that webhook_secret is returned once on creation and must be stored, indicating when to use this tool. However, it does not explicitly state when not to use it or mention alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/LamboPoewert/mcp-server-madeonsol'

If you have feedback or need assistance with the MCP directory API, please join our Discord server