Skip to main content
Glama
LamboPoewert

MadeOnSol — Solana memecoin intelligence

madeonsol_copytrade_get

Read-onlyIdempotent

Retrieve a specific copy-trade rule using its subscription ID to view details of a configured copy trading strategy.

Instructions

Get one copy-trade rule by id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesSubscription id

Implementation Reference

  • src/index.ts:711-719 (registration)
    Registration of the 'madeonsol_copytrade_get' MCP tool via server.tool() with the name, description, schema, annotations, and handler.
    server.tool(
      "madeonsol_copytrade_get",
      "Get one copy-trade rule by id.",
      { id: z.number().describe("Subscription id") },
      { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true },
      async ({ id }) => ({
        content: [{ type: "text" as const, text: await restQuery("GET", `/copytrade/subscriptions/${id}`) }],
      })
    );
  • Input schema for madeonsol_copytrade_get: a single 'id' parameter of type number, described as 'Subscription id'.
    { id: z.number().describe("Subscription id") },
    { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true },
  • Handler function that makes a GET request to /copytrade/subscriptions/{id} via the restQuery helper to retrieve a copy-trade rule.
    async ({ id }) => ({
      content: [{ type: "text" as const, text: await restQuery("GET", `/copytrade/subscriptions/${id}`) }],
    })
  • The restQuery helper function used by the handler to make authenticated REST API calls to the MadeOnSol backend.
    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);
    }
Behavior3/5

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

The annotations (readOnlyHint=true, destructiveHint=false, idempotentHint=true) already indicate a safe, non-destructive operation. The description adds no additional behavioral traits such as authentication needs, rate limits, or return format. With annotations covering safety, this scores a baseline 3.

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 a single, concise sentence that immediately conveys the tool's function. There is no superfluous information; every word earns its place.

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 tool's simplicity (one parameter, no output schema, rich annotations), the description is adequate. However, it could hint at the response structure (e.g., 'Returns the full copy-trade rule object') to improve completeness, but the current version is minimally sufficient.

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?

The input schema has 100% coverage with the parameter 'id' described as 'Subscription id'. The description does not add any additional meaning beyond what the schema provides, so it meets the baseline.

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 'Get one copy-trade rule by id,' specifying the action (get) and the resource (copy-trade rule) with a clear identifier (id). It distinguishes the tool from siblings like create, delete, list, and update by focusing on retrieval of a single rule.

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 provides no guidance on when to use this tool versus alternatives like list or signals. While the purpose implies its use for fetching a specific rule, there is no explicit context or exclusion criteria.

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