Skip to main content
Glama

PerpFarms: Funding Rate Arbitrage

Farm perp DEX points without price risk

points_farming
Read-onlyIdempotent

Delta-neutral points (airdrop) farming on perp DEXs with a live points program (Pacifica, Paradex, Variational, Hibachi): hold a position on the points exchange and the opposite side on another exchange. For each hedge: net cost a day after fees, slippage and funding, estimated points a day, cost per 1,000 points and their estimated value, plus the program's facts with sources and dates. Without a program it gives the best hedge of each, and says which programs have ended (Lighter Core, ApeX, Extended, GRVT) or ban hedging (Aster).

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": "points_farming"
  }
}

Input Schema

NameRequiredDescriptionDefault
coinNoTicker as exchanges list it, e.g. BTC, ETH, HYPE, TSLA
limitNoRows to return, default 5. Without a key at most 5, with a free key 20, with Pro 50
programNoOne points program; leave out for the best hedge of each
size_usdNoPosition size per leg in USD; costs come from the live order books at this size. Default 10000
hold_daysNoDays you plan to hold the position. Default 7

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description adds real substance beyond them: the cost model accounts for fees, slippage and funding; program facts come with sources and dates; and it warns that certain programs have ended or prohibit hedging. It stops short of saying how fresh the order-book or program data is or how often it refreshes.

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?

Purpose is front-loaded in the first clause and every subsequent sentence carries new information about outputs or fallbacks. It is a single dense paragraph with a slightly run-on middle sentence, but no clause is filler.

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?

There is no output schema, so the description must carry the return-value burden, and it does: net daily cost, estimated points per day, cost per 1,000 points, their estimated value, plus sourced program facts. Combined with the disclosed caveats about ended and hedging-ban programs, an agent has everything needed to call it correctly.

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 every parameter including the two enums is already documented, and the baseline is 3. The description adds only the notion of size per leg implicitly through the hedge framing; it does not explain defaults or the tiered row limits in more detail than the schema already does.

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?

The description names a specific activity (delta-neutral points/airdrop farming on perp DEXs), lists the concrete venues it covers (Pacifica, Paradex, Variational, Hibachi), and describes the mechanics of the hedge. That is enough for an agent to distinguish it from sibling tools like find_funding_arbitrage or cross_exchange_spot_perp without opening any schema.

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

Usage Guidelines4/5

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

It gives a clear operating context and an explicit fallback: omit the program to get the best hedge of each, and it states which programs have ended (Lighter Core, ApeX, Extended, GRVT) or ban hedging (Aster). What it lacks is any direct routing sentence naming the case where a sibling tool should be preferred instead.

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.

Resources