Skip to main content
Glama

exergynet_estimate_gate

Calculate exergy-gate profitability for autonomous agent settlements using external compute cost and settlement cost, with an optional risk margin.

Instructions

Calculate exergy-gate profitability.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
externalComputeCostUsdYes
settlementCostUsdYes
riskMarginUsdNo

Implementation Reference

  • Handler function that executes the exergynet_estimate_gate tool logic. It computes external compute cost minus settlement cost and risk margin to determine if using ExergyNet is profitable.
    case "exergynet_estimate_gate": {
      // Corrected Math Evaluation Matrix
      const extCost = Number(args.externalComputeCostUsd) || 0;
      const setCost = Number(args.settlementCostUsd) || 0;
      const margin = Number(args.riskMarginUsd) || 0;
      
      const totalCost = setCost + margin;
      
      if (extCost > totalCost) {
          return { content:[{ type: "text", text: `ACTION: USE_EXERGYNET (Margin: ${(extCost - totalCost).toFixed(2)})` }] };
      } else {
          return { content:[{ type: "text", text: `REJECT: Below threshold. (Deficit: ${(totalCost - extCost).toFixed(2)})` }] };
      }
    }
  • Input schema for the exergynet_estimate_gate tool. Defines required fields: externalComputeCostUsd, settlementCostUsd, and optional riskMarginUsd, all of type number.
    { 
        name: "exergynet_estimate_gate", 
        description: "Calculate exergy-gate profitability.", 
        inputSchema: { 
            type: "object", 
            required:["externalComputeCostUsd", "settlementCostUsd"], 
            properties: { 
                externalComputeCostUsd: { type: "number" }, 
                settlementCostUsd: { type: "number" }, 
                riskMarginUsd: { type: "number" } 
            } 
        } 
    }
  • src/index.ts:17-36 (registration)
    Registration of the tool via ListToolsRequestSchema handler. The tool named 'exergynet_estimate_gate' is listed alongside other tools.
    server.setRequestHandler(ListToolsRequestSchema, async () => ({
      tools:[
        { name: "exergynet_get_program_id", description: "Return the Mainnet LNES-01 program ID.", inputSchema: { type: "object", properties: {} } },
        { name: "exergynet_verify_program", description: "Check if LNES-01 is live on Mainnet.", inputSchema: { type: "object", properties: { rpcUrl: { type: "string" } }, additionalProperties: false } },
        { name: "exergynet_get_proof_transaction", description: "Return the proven SettleExergy transaction signature.", inputSchema: { type: "object", properties: {} } },
        { 
            name: "exergynet_estimate_gate", 
            description: "Calculate exergy-gate profitability.", 
            inputSchema: { 
                type: "object", 
                required:["externalComputeCostUsd", "settlementCostUsd"], 
                properties: { 
                    externalComputeCostUsd: { type: "number" }, 
                    settlementCostUsd: { type: "number" }, 
                    riskMarginUsd: { type: "number" } 
                } 
            } 
        }
      ]
    }));
Behavior2/5

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

No annotations are present, so the description must fully disclose behavior. It states only that a calculation occurs, but does not mention side effects, authorization needs, rate limits, or whether the tool is read-only. The single sentence provides minimal behavioral context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise (one sentence), but this brevity comes at the cost of useful detail. While it front-loads the purpose, it omits critical information about parameters and output, making it minimally adequate.

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?

With three input parameters, no output schema, and no annotations, the description should provide more context about what the inputs represent and what the tool returns. The current description does not enable an agent to use the tool effectively without additional domain knowledge.

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

Parameters1/5

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

Schema description coverage is 0%, meaning parameter names and types provide the only semantic clues. The description does not explain the meaning or role of 'externalComputeCostUsd', 'settlementCostUsd', or 'riskMarginUsd', leaving the agent to infer their purpose from names alone, which is insufficient.

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 action ('Calculate') and the subject ('exergy-gate profitability'), distinguishing it from sibling tools which retrieve or verify data. However, the domain term 'exergy-gate' is not explained, which may confuse agents unfamiliar with the 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?

No guidance is provided on when to use this tool versus alternatives like exergynet_get_program_id or exergynet_verify_program. There is no mention of prerequisites, contexts, or exclusions.

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/ezumba/exergynet-mcp-server'

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