Skip to main content
Glama

Erick Wendel Contributions MCP

by ErickWendel

check_status

Verify API operational status to ensure responsiveness. Use this tool to confirm if the API is active and ready for queries.

Instructions

Check if the API is alive and responding.

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": {}, "type": "object" }

Implementation Reference

  • The async handler function for the 'check_status' tool. It invokes checkApiStatus() helper and formats a response indicating if the API is 'Online' or 'Offline'.
    handler: async (): Promise<McpResponse> => { try { const result = await checkApiStatus(); const content: McpTextContent = { type: "text", text: `API Status: ${result.isAlive ? "Online" : "Offline"}` }; return { content: [content], }; } catch (error) { throw new Error(`Failed to check API status: ${error.message}`); } }
  • src/index.ts:42-47 (registration)
    Registration of the checkStatusTool (named 'check_status') into the MCP server using server.tool().
    server.tool( checkStatusTool.name, checkStatusTool.description, checkStatusTool.parameters, checkStatusTool.handler );
  • Helper function that performs a GraphQL query to check if the API is alive, returning a StatusResponse.
    export async function checkApiStatus(): Promise<StatusResponse> { return await client.query({ isAlive: true, }) as StatusResponse; }
  • Configuration schema defining the tool name 'check_status' and its description. The parameters are defined as empty object {} in the tool definition.
    status: { name: "check_status", description: "Check if the API is alive and responding." }

Other Tools

Related 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/ErickWendel/erickwendel-contributions-mcp'

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