Skip to main content
Glama
LamboPoewert

MadeOnSol — Solana memecoin intelligence

madeonsol_first_touch_subscriptions_update

Update a first-touch subscription's settings: name, filters, delivery mode, webhook, or toggle is_active. Used for Solana KOL trading alerts.

Instructions

Update fields on a first-touch subscription, including is_active toggle. ULTRA only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesSubscription UUID
nameNo
filtersNo
delivery_modeNo
webhook_urlNo
is_activeNo

Implementation Reference

  • src/index.ts:925-948 (registration)
    Registration of the madeonsol_first_touch_subscriptions_update tool via server.tool(). The tool is defined with a schema for id, name, filters, delivery_mode, webhook_url, and is_active, and the handler sends a PATCH request to the MadeOnSol API at /kol/first-touches/subscriptions/:id.
    server.tool(
      "madeonsol_first_touch_subscriptions_update",
      "Update fields on a first-touch subscription, including is_active toggle. ULTRA only.",
      {
        id: z.string().describe("Subscription UUID"),
        name: z.string().nullable().optional(),
        filters: z.object({
          kol: z.string().optional(),
          mint_suffix: z.string().optional(),
          min_first_buy_sol: z.number().min(0).optional(),
          min_scout_tier: z.enum(["S", "A", "B", "C"]).optional(),
          min_n_touches: z.number().min(1).optional(),
        }).optional(),
        delivery_mode: z.enum(["websocket", "webhook", "both"]).optional(),
        webhook_url: z.string().url().nullable().optional(),
        is_active: z.boolean().optional(),
      },
      { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true },
      async ({ id, ...patch }) => {
        const body: Record<string, unknown> = {};
        for (const [k, v] of Object.entries(patch)) if (v !== undefined) body[k] = v;
        return { content: [{ type: "text" as const, text: await restQuery("PATCH", `/kol/first-touches/subscriptions/${encodeURIComponent(id)}`, body) }] };
      }
    );
  • Zod schema defining the input parameters for the update tool: id (required UUID), and optional fields name, filters, delivery_mode, webhook_url, and is_active.
    {
      id: z.string().describe("Subscription UUID"),
      name: z.string().nullable().optional(),
      filters: z.object({
        kol: z.string().optional(),
        mint_suffix: z.string().optional(),
        min_first_buy_sol: z.number().min(0).optional(),
        min_scout_tier: z.enum(["S", "A", "B", "C"]).optional(),
        min_n_touches: z.number().min(1).optional(),
      }).optional(),
      delivery_mode: z.enum(["websocket", "webhook", "both"]).optional(),
      webhook_url: z.string().url().nullable().optional(),
      is_active: z.boolean().optional(),
    },
  • Handler function for the update tool. It destructures the 'id' from the rest of the patch fields, builds a body object from non-undefined fields, and calls restQuery with a PATCH method to the MadeOnSol API endpoint /kol/first-touches/subscriptions/:id.
      async ({ id, ...patch }) => {
        const body: Record<string, unknown> = {};
        for (const [k, v] of Object.entries(patch)) if (v !== undefined) body[k] = v;
        return { content: [{ type: "text" as const, text: await restQuery("PATCH", `/kol/first-touches/subscriptions/${encodeURIComponent(id)}`, body) }] };
      }
    );
  • Helper function restQuery that the update handler delegates to. It sends an HTTP request with JSON body and Bearer auth headers to the MadeOnSol API and returns formatted JSON or an error 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);
    }
Behavior2/5

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

Annotations indicate readOnlyHint=false (modifies data) and destructiveHint=false, but the description does not elaborate beyond 'update'. It fails to disclose whether the update is partial or full, what happens to unspecified fields, or if there are side effects. The 'ULTRA only' note is helpful but insufficient.

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

Conciseness4/5

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

The description is a single, concise sentence with no redundant words. It effectively communicates the core action and a key feature. However, it could be slightly restructured to front-load the most critical information, such as the access restriction.

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

Completeness2/5

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

Given the tool's complexity (6 parameters, nested objects, no output schema), the description is far from complete. It does not specify the update semantics (e.g., replace all fields or merge), possible return values, or prerequisites beyond 'ULTRA'. This leaves significant ambiguity for the agent.

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

Parameters2/5

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

Schema description coverage is only 17% (only 'id' has a description). The description adds no details about parameters like 'name', 'filters', 'delivery_mode', or 'webhook_url'. It only mentions 'is_active', leaving the agent without guidance on how to use the other parameters.

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

Purpose4/5

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

The description clearly states 'Update fields on a first-touch subscription', which identifies the action and resource. It also mentions the 'is_active toggle' as a specific capability, distinguishing it from other CRUD operations. However, it could be more precise about which fields are updatable (e.g., name, filters, delivery_mode).

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

Usage Guidelines3/5

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

The description includes 'ULTRA only', which hints at access restrictions but does not provide explicit guidance on when to use this tool versus alternatives like recreate or patch. There is no comparison with sibling tools such as 'madeonsol_first_touch_subscriptions_create' or 'delete'.

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