Skip to main content

What It Is

The Nile Markets OpenClaw skill is an agentskills.io-format skill published on ClawHub. It provides read-only access to the Nile Markets protocol by delegating all queries to the Nile MCP server at mcp.nilemarkets.com. The skill exposes 12 MCP tools for querying pool state, positions, oracle prices, account balances, and fee analytics.

Installation

Install the ClawHub CLI globally, then install the skill:
npm install -g clawhub
clawhub install nile-markets

Prerequisites

Set the MCP server URL as an environment variable before using the skill:
export NILE_MCP_URL="https://mcp.nilemarkets.com/api/mcp"
Add this to your shell profile (.bashrc, .zshrc, etc.) for persistence.

Available Tools (12)

All tools are read-only. They return JSON responses with protocol (name + version), network, and data fields. Tools sourcing data from the subgraph include _meta.lastIndexedBlock for freshness verification.

Pool and Protocol

ToolDescriptionInput
get_pool_stateLiquidity pool metrics: total assets, shares, share price, exposure, utilization, feesNone
get_protocol_modeOperating mode: NORMAL, DEGRADED, REDUCE_ONLY, or PAUSEDNone

Positions

ToolDescriptionInput
get_positionsPositions for a specific accountaccount (required), status?, first?, skip?
get_positionSingle position with real-time PnL via RPCid (required)
search_positionsSearch all positions with filtersside?, tenor?, status?, minNotional?, first?, skip?

Oracle and Pricing

ToolDescriptionInput
get_forward_priceEUR/USD forward price for a specific tenortenor? (1D, 1W, 1M, or omit for all)
get_oracle_stateFull oracle state: spot, all forward prices, validityNone

Accounts and Fees

ToolDescriptionInput
get_accountAccount margin: collateral, locked, available, position countaddress (required)
get_daily_statsDaily volume, fees, position opens/closesdays? (default 7, max 90)
get_pool_transactionsHistorical vault deposits and withdrawalsfirst?, skip?
get_fee_eventsFee event breakdown (trading, liquidation, termination, oracle)first?, skip?

Simulation

ToolDescriptionInput
simulate_open_positionPreview margin, fee, and entry strike for a new positionside, tenor, notional, from?

Example Queries

Ask your agent questions naturally once the skill is loaded:
  • “What’s the current Nile Markets pool utilization and share price?” — uses get_pool_state
  • “Show me all open positions for 0x1234…abcd” — uses get_positions with status: "OPEN"
  • “What are the EUR/USD forward prices for all tenors?” — uses get_forward_price without a tenor filter
  • “Is the Nile Markets protocol operating normally?” — uses get_protocol_mode
  • “How much margin for a 1000 USDC long 1-week position?” — uses simulate_open_position
  • “Find all open short positions above 5000 USDC notional” — uses search_positions with filters

Verify Installation

Confirm the skill is installed and inspect its metadata:
clawhub list | grep nile-markets
clawhub inspect nile-markets
The inspect command shows the skill version, tool count, environment requirements, and MCP server URL.

Limitations

The OpenClaw skill is read-only. It cannot:
  • Open, close, or modify positions onchain
  • Deposit or withdraw margin or vault funds
  • Approve token spending or mint test tokens
  • Manage wallets, private keys, or sign transactions
For write operations, connect to the Nile MCP server directly using any MCP-compatible client. See the MCP Server page for setup instructions, or use the Claude Code Plugin which includes both read and write tools.
The skill connects to the Nile Markets MCP server on Ethereum Sepolia. All protocol data is testnet-only with no real-world value. Tool schemas and response formats may change without notice during the M2 milestone.