Skip to main content
Glama

get-proxy-config

Retrieve the current proxy configuration to manage network settings for the CCXT MCP Server, ensuring efficient cryptocurrency exchange integration.

Instructions

Get the current proxy configuration

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Registration of the 'get-proxy-config' MCP tool on the server, including inline handler implementation that reads proxy configuration from environment variables and returns it as formatted text content, intentionally omitting the password for security.
    server.tool("get-proxy-config", "Get the current proxy configuration", {}, 
      async () => {
        const useProxy = process.env.USE_PROXY === 'true';
        const proxyUrl = process.env.PROXY_URL || '';
        const proxyUsername = process.env.PROXY_USERNAME || '';
        // Don't return the password for security reasons
        
        return {
          content: [{
            type: "text",
            text: JSON.stringify({
              enabled: useProxy,
              url: proxyUrl,
              username: proxyUsername,
              isConfigured: useProxy && !!proxyUrl
            }, null, 2)
          }]
        };
      }
    );
  • The inline asynchronous handler function for the 'get-proxy-config' tool. It extracts proxy settings from process.env (USE_PROXY, PROXY_URL, PROXY_USERNAME), omits PROXY_PASSWORD for security, and returns an MCP-formatted response with the configuration as JSON text.
    async () => {
      const useProxy = process.env.USE_PROXY === 'true';
      const proxyUrl = process.env.PROXY_URL || '';
      const proxyUsername = process.env.PROXY_USERNAME || '';
      // Don't return the password for security reasons
      
      return {
        content: [{
          type: "text",
          text: JSON.stringify({
            enabled: useProxy,
            url: proxyUrl,
            username: proxyUsername,
            isConfigured: useProxy && !!proxyUrl
          }, null, 2)
        }]
      };
    }
  • Supporting helper function 'getProxyConfig' imported in config.ts and used in other proxy-related tools and exchange initialization. Provides full proxy configuration including password, unlike the tool handler which omits it.
    export function getProxyConfig(): { url: string; username?: string; password?: string } | null {
      const useProxy = process.env.USE_PROXY === 'true';
      if (!useProxy) return null;
      
      const url = process.env.PROXY_URL;
      if (!url) {
        log(LogLevel.WARNING, 'USE_PROXY is true but PROXY_URL is not set');
        return null;
      }
      
      const username = process.env.PROXY_USERNAME || undefined;
      const password = process.env.PROXY_PASSWORD || undefined;
      
      return { url, username, password };
    }
Behavior2/5

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

With no annotations provided, the description carries full burden but only states the action without behavioral details. It doesn't disclose if this is a read-only operation, requires authentication, has rate limits, returns structured data, or what happens on errors—critical gaps for a tool in a financial/API context.

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, clear sentence with zero wasted words. It's front-loaded with the core action and resource, making it highly efficient and easy to parse for an AI agent.

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

Completeness2/5

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

For a tool with no annotations and no output schema, the description is insufficient. It doesn't explain what the proxy configuration includes (e.g., settings, status), the return format, or error handling—leaving the agent unprepared for effective use in a complex sibling toolset.

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?

The tool has 0 parameters with 100% schema description coverage, so no parameter documentation is needed. The description appropriately doesn't discuss parameters, earning a baseline high score for not adding unnecessary information.

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 the verb ('Get') and resource ('proxy configuration'), making the purpose immediately understandable. However, it doesn't differentiate from sibling tools like 'test-proxy-connection' or 'set-proxy-config', which would require more specificity about what 'current' means in this context.

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 like 'test-proxy-connection' or 'set-proxy-config'. There's no mention of prerequisites, timing, or comparative use cases, leaving the agent to infer usage from context alone.

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

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/doggybee/mcp-server-ccxt'

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