Skip to main content
Glama

alphapipeline

derivatives.funding_apr_matrix

Read-only

Use this tool to evaluate a spot+perpetual carry trade: annualizes the current perpetual funding rate into an APR, flags which side (SHORT or LONG perp) currently collects funding, and computes how many days of that funding income it takes to recoup an assumed round-trip trading cost. Pure calculation on top of funding_rate data - no extra upstream call. Do not use for the raw current funding rate alone (use derivatives.funding_rate) or for spot price data. Paid in USDC on Base.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYesTicker symbol, e.g. BTC, ETH, or BTCUSDT.
assumed_round_trip_cost_pctNoCombined entry+exit trading fee percentage across both the spot and perpetual legs. Defaults to 0.2.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
noticeNo
symbolYes
data_sourceYes
generated_atYes
breakeven_daysNo
periods_per_yearNo
annualized_rate_pctNo
funding_collector_sideNo
funding_interval_hoursNo
funding_rate_percentageNo
daily_funding_income_pctNo
assumed_round_trip_cost_pctYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description adds meaningful behavior beyond that: it performs a pure calculation on top of funding_rate data, has no extra upstream call, flags the funding-paying side, and is paid in USDC on Base. These details are not visible elsewhere.

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?

Three dense, front-loaded sentences cover the main action, exclusions, alternatives, and payment context with zero filler. Every sentence earns its place.

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

Completeness5/5

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

For a two-parameter calculation tool with an output schema, the description covers purpose, usage boundaries, computation behavior, and payment context. Nothing needed for correct invocation is missing.

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 description coverage is 100%, so the schema already fully documents both parameters. The description contextualizes assumed_round_trip_cost_pct as the cost recouped by funding income, but it does not add new parameter-level details beyond what the schema already provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: 'evaluate a spot+perpetual carry trade' and enumerates three concrete outputs: annualized APR, funding side, and days to recoup cost. It also explicitly distinguishes itself from the sibling tool derivatives.funding_rate, making its purpose clear without needing to open schemas.

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

Usage Guidelines5/5

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

Contains explicit routing guidance: 'Do not use for the raw current funding rate alone (use derivatives.funding_rate) or for spot price data.' It also clarifies this is a pure calculation with no extra upstream call, which tells the agent exactly when this tool is appropriate versus alternatives.

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.