Skip to main content
Glama
andrealufino

aapl-ads-mcp

health

Verify MCP server connectivity without authentication. Returns server name, version, and timestamp to confirm the connection is active before making Apple Search Ads API calls.

Instructions

Check if the aapl-ads-mcp server is running and reachable. Use this to verify the MCP connection before making API calls. No ASA authentication is required — returns server name, version, and current timestamp.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The async handler function that executes the health check logic. Returns a JSON response with status 'ok', server name, version, and current timestamp.
        async () => {
          return {
            content: [
              {
                type: "text",
                text: JSON.stringify(
                  {
                    status: "ok",
                    server: "aapl-ads-mcp",
                    version: "0.1.0",
                    timestamp: new Date().toISOString(),
                  },
                  null,
                  2
                ),
              },
            ],
          };
        }
      );
    }
  • Empty schema object for the health tool — no input parameters are required.
    {},
  • The registerHealthTool function that calls server.tool("health", ...) to register the tool with the MCP server.
    export function registerHealthTool(server: McpServer): void {
      server.tool(
        "health",
        "Check if the aapl-ads-mcp server is running and reachable. Use this to verify the MCP connection before making API calls. No ASA authentication is required — returns server name, version, and current timestamp.",
        {},
        async () => {
          return {
            content: [
              {
                type: "text",
                text: JSON.stringify(
                  {
                    status: "ok",
                    server: "aapl-ads-mcp",
                    version: "0.1.0",
                    timestamp: new Date().toISOString(),
                  },
                  null,
                  2
                ),
              },
            ],
          };
        }
      );
  • src/server.ts:23-23 (registration)
    Where registerHealthTool is called from createServer() to wire up the tool.
    registerHealthTool(server);
  • Re-export of registerHealthTool from the tools barrel index file.
    export { registerHealthTool } from "./health.js";
    export { registerKeywordsTools } from "./keywords.js";
Behavior4/5

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

No annotations provided, so description carries full burden. It describes return values and non-destructive nature. Lacks error handling details but sufficient for a simple health check.

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?

Two concise sentences with front-loaded purpose. No wasted words; every sentence adds necessary information.

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

Completeness5/5

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

With zero parameters and no output schema, the description fully covers purpose, usage, and return expectations. No gaps remain.

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

Parameters4/5

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

No parameters exist, so description adds value by clarifying expected output and usage context. Baseline 4 applies.

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 the tool checks if the server is running and reachable, with specific return values (server name, version, timestamp). It distinctly differs from sibling tools that focus on data retrieval.

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?

Explicitly advises to use before making API calls, and notes no authentication required. Could strengthen by mentioning not to use for data operations, but context is clear.

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/andrealufino/aapl-ads-mcp'

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