Skip to main content
Glama

minia2a — hosted x402 API marketplace (HTTP)

x402-sharpe-ratio

Sharpe Ratio: Sharpe ratio. Takes return, riskFree (default 0) and stddev. Returns (return - riskFree)/stddev as result, or null when stddev is 0. 🆓 5 free trial calls per signed wallet

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "x402-sharpe-ratio"
  }
}

Input Schema

NameRequiredDescriptionDefault
returnNo
stddevNo
riskFreeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / properties / return / description
      Removed value: -"Return to process"
    • removedInput schema / properties / riskFree / description
      Removed value: -"RiskFree to process"
    • removedInput schema / properties / stddev / description
      Removed value: -"Stddev to process"
  2. First observed

TDQS

B3.2/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 burden, and it does disclose two useful behaviors: riskFree defaults to 0 when omitted, and the result is null when stddev is 0. It also notes a 5-call free trial per signed wallet, hinting at a paywall/auth model, but it says nothing about output format, precision, or what happens with invalid numeric input.

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?

The description is compact and front-loads the formula and return semantics; the only waste is the redundant 'Sharpe Ratio: Sharpe ratio' opener and the trailing promotional emoji line. Every other sentence earns its place.

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

Completeness4/5

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

For a stateless three-parameter math function with no output schema, the description covers the computation, the default, and the zero-division edge case, which is nearly everything needed to call it correctly. It falls short only on input encoding (numeric strings) and precision.

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

Parameters3/5

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

Schema coverage is 0%, so the description must compensate; it does add real meaning by naming each parameter's role and supplying the riskFree default (absent from the schema). However, it omits that inputs are strings representing numbers, any format/precision expectations, and it implies return and stddev are required while the schema lists zero required parameters.

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 names a specific computation (Sharpe ratio) and spells out the exact formula (return - riskFree)/stddev, so the agent knows precisely what the tool produces. It does not differentiate from the similarly named sibling x402-sharpe, which keeps it from a 5.

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?

There is no explicit guidance on when to use this tool versus alternatives, nor any exclusions; the presence of a near-identical sibling (x402-sharpe) makes that omission more costly. The formula implies the use case (risk-adjusted return calculation) but the agent must infer it.

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.