Skip to main content
Glama

minia2a — hosted x402 API marketplace (HTTP)

x402-roi-calc

ROI Calc: Calculate Return on Investment from invested and returned amounts. Provide invested and returned values. 🆓 5 free trial calls per signed wallet

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "invested": "<invested>"
    },
    "name": "x402-roi-calc"
  }
}

Input Schema

NameRequiredDescriptionDefault
costNo
gainNo
finalNo
yearsNo
currentNo
initialNo
investedYes
returnedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / required
      Added value: +[
      +  "invested"
      +]
  2. Changed8 schema fields changed
    • removedInput schema / properties / cost / description
      Removed value: -"Cost to process"
    • removedInput schema / properties / current / description
      Removed value: -"Current to process"
    • removedInput schema / properties / final / description
      Removed value: -"Final to process"
    • removedInput schema / properties / gain / description
      Removed value: -"Gain to process"
    • removedInput schema / properties / initial / description
      Removed value: -"Initial to process"
    • removedInput schema / properties / invested / description
      Removed value: -"Invested to process"
    • removedInput schema / properties / returned / description
      Removed value: -"Returned to process"
    • removedInput schema / properties / years / description
      Removed value: -"Years to process"
  3. First observed

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden. It does add one useful behavioral fact — the '5 free trial calls per signed wallet' quota, which signals a rate limit and an auth requirement. But it never states that this is a pure side-effect-free computation, nor what the calculation returns (a ratio, a percentage, a currency amount), so the safety and output profile remain unknown.

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

Conciseness4/5

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

Two short sentences with the purpose front-loaded, followed by the input instruction and the quota note. The marketing emoji and free-trial pitch add little for an agent, but the definition is otherwise tight and free of padding.

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 eight undocumented parameters and no output schema, the description does far too little: it identifies two inputs and no return semantics, and does not resolve the overlap with the sibling 'x402-roi'. An agent can guess it will get a number back, but not what shape or meaning that number has.

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

Parameters2/5

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

Schema description coverage is 0% across 8 parameters, and the description documents only two of them ('invested' and 'returned'), leaving cost, gain, final, years, current, and initial unexplained — an agent cannot tell whether they are aliases or distinct inputs like a time period. It also contradicts the schema by implying both invested and returned are needed, while only 'invested' is required.

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 states a specific verb and resource: 'Calculate Return on Investment from invested and returned amounts.' An agent immediately knows this is an ROI computation rather than, say, a markup or margin calculation. However, it never distinguishes itself from the sibling 'x402-roi', which plausibly computes the same thing, leaving real ambiguity.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Provide invested and returned values' implies the minimum input needed to invoke the tool, which is light usage guidance. There is no statement of when to prefer this over the sibling 'x402-roi', no exclusions, and no note about which of the eight schema fields are actually relevant.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.