Skip to main content
Glama
LamboPoewert

MadeOnSol — Solana memecoin intelligence

madeonsol_test_webhook

Read-onlyIdempotent

Test a webhook by sending a sample event payload and receiving its status code and response time.

Instructions

Send a sample event payload to a webhook URL to verify it works. Returns status code and response time.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
webhook_idYesID of the webhook to test

Implementation Reference

  • Handler function for the madeonsol_test_webhook tool. Sends a POST request to /api/v1/webhooks/test with the webhook_id to trigger a test payload delivery to the registered webhook URL.
    async ({ webhook_id }) => ({
      content: [{ type: "text" as const, text: await restQuery("POST", "/webhooks/test", { webhook_id }) }],
    })
  • Schema for the madeonsol_test_webhook tool. Defines a single required parameter: webhook_id (number).
      webhook_id: z.number().describe("ID of the webhook to test"),
    },
    { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true },
  • src/index.ts:512-522 (registration)
    Registration of the madeonsol_test_webhook tool via server.tool(), including description, Zod schema, annotations, and handler. Conditionally registered only when authMode === 'madeonsol' (requires MadeOnSol API key).
    server.tool(
      "madeonsol_test_webhook",
      "Send a sample event payload to a webhook URL to verify it works. Returns status code and response time.",
      {
        webhook_id: z.number().describe("ID of the webhook to test"),
      },
      { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true },
      async ({ webhook_id }) => ({
        content: [{ type: "text" as const, text: await restQuery("POST", "/webhooks/test", { webhook_id }) }],
      })
    );
  • The restQuery helper function used by madeonsol_test_webhook's handler. It constructs a fetch request to the MadeOnSol API with JSON content-type and Bearer auth headers, handles errors, and returns the JSON response as a formatted 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);
    }
Behavior3/5

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

Annotations already indicate readOnly, non-destructive, idempotent nature. The description adds that it sends a sample payload to an external URL and returns status, which is a useful behavioral trait. However, it does not detail the contents of the sample payload or any potential side effects on the webhook endpoint.

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, efficient sentence that conveys purpose and return value without any fluff. Every part is necessary and front-loaded.

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

Completeness4/5

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

Given the simplicity of the tool (one parameter, full annotations, no output schema), the description is fairly complete. It explains the action, what is returned, and implies the pre-requisite of an existing webhook. Could mention the sample event format, but not critical.

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 coverage is 100% with the parameter description matching the tool description. The description adds no additional meaning beyond what the schema provides, so baseline 3 is appropriate.

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 it sends a sample event to test a webhook, specifying what it does (send event) and what it returns (status code and response time). This distinguishes it from sibling webhook CRUD tools, though it could be slightly more explicit about testing connectivity.

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

Usage Guidelines2/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 (e.g., create_webhook, list_webhooks). It is implied for testing after creation, but no explicit when-to-use or when-not-to context is given.

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