Skip to main content
Glama

reload-agent

Reloads the agent configuration for Consul MCP Server, enabling updated settings to take effect immediately without restarting the agent.

Instructions

Reload agent configuration

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the "reload-agent" tool. It calls `consul.agent.reload()` to reload the Consul agent's configuration and returns a success or error message.
    async () => { try { // @ts-ignore - The Consul type definitions are incomplete await consul.agent.reload(); return { content: [{ type: "text", text: "Agent configuration reloaded successfully" }] }; } catch (error) { console.error("Error reloading agent:", error); return { content: [{ type: "text", text: "Error reloading agent configuration" }] }; } }
  • Registration of the "reload-agent" tool via `server.tool()`. It has no input parameters (empty schema) and includes the inline handler.
    server.tool( "reload-agent", "Reload agent configuration", {}, async () => { try { // @ts-ignore - The Consul type definitions are incomplete await consul.agent.reload(); return { content: [{ type: "text", text: "Agent configuration reloaded successfully" }] }; } catch (error) { console.error("Error reloading agent:", error); return { content: [{ type: "text", text: "Error reloading agent configuration" }] }; } } );
  • src/server.ts:47-47 (registration)
    Invocation of `registerAgentTools(server, consul)` which registers the "reload-agent" tool among other agent tools.
    registerAgentTools(server, consul);

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/kocierik/consul-mcp-server'

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