Skip to main content
Glama

get_hip3_funding_current

Read-onlyIdempotent

Retrieve the current HIP-3 funding rate for any coin symbol to assess real-time funding costs.

Instructions

Get the current HIP-3 funding rate for a coin. Symbols are CASE-SENSITIVE (e.g. 'km:US500'). Returns the latest funding rate and timestamp.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
coinYesHIP-3 coin symbol (CASE-SENSITIVE). 125+ markets across 6 builders: xyz, flx, hyna, km, vntl, cash. Examples: 'km:US500', 'xyz:GOLD', 'hyna:BTC', 'vntl:SPACEX', 'flx:TSLA', 'cash:NVDA'. Use get_hip3_instruments to list all.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesResult data object

Implementation Reference

  • src/index.ts:711-717 (registration)
    Registration of the 'get_hip3_funding_current' tool using registerCurrentTool pattern. It takes a HIP-3 coin symbol (case-sensitive), calls api().hyperliquid.hip3.funding.current(coin), uses Hip3CoinParam for input schema, normalizeHip3Coin for normalization, and ObjectOutputSchema for output.
    registerCurrentTool(
      "get_hip3_funding_current",
      "Get the current HIP-3 funding rate for a coin. Symbols are CASE-SENSITIVE (e.g. 'km:US500'). Returns the latest funding rate and timestamp.",
      (coin) => api().hyperliquid.hip3.funding.current(coin),
      Hip3CoinParam,
      normalizeHip3Coin
    );
  • Handler logic via registerCurrentTool helper. This is the generic 'current snapshot' pattern that wraps the SDK call with coin normalization and response formatting. For get_hip3_funding_current, the SDK call is api().hyperliquid.hip3.funding.current(coin).
    function registerCurrentTool(
      name: string,
      description: string,
      sdkCall: (coin: string) => Promise<unknown>,
      coinSchema: z.ZodString,
      normFn: (coin: string) => string
    ): void {
      registerTool(name, description, { coin: coinSchema }, ObjectOutputSchema, async (params) => {
        const data = await sdkCall(normFn(params.coin));
        return formatResponse(data);
      });
  • Coin normalization helper for HIP-3 symbols. Returns the coin as-is because HIP-3 symbols are case-sensitive.
    function normalizeHip3Coin(coin: string): string {
      return coin; // Case-sensitive
  • Input schema (Hip3CoinParam) used by get_hip3_funding_current. A case-sensitive string parameter describing HIP-3 coin symbols.
    const Hip3CoinParam = z
      .string()
      .describe(
        "HIP-3 coin symbol (CASE-SENSITIVE). 125+ markets across 6 builders: xyz, flx, hyna, km, vntl, cash. Examples: 'km:US500', 'xyz:GOLD', 'hyna:BTC', 'vntl:SPACEX', 'flx:TSLA', 'cash:NVDA'. Use get_hip3_instruments to list all."
      );
  • Output schema (ObjectOutputSchema) used by get_hip3_funding_current. Returns a single result object.
    const ObjectOutputSchema: ZodRawShape = {
      data: z.record(z.unknown()).describe("Result data object"),
    };
Behavior4/5

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

Annotations already declare readOnlyHint, destructiveHint, idempotentHint, and openWorldHint, so the tool's safety is clear. The description adds valuable behavioral context: symbols are case-sensitive and returns the latest funding rate and timestamp. This goes beyond what annotations provide.

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?

Two concise sentences, front-loaded with the core action. Every word earns its place. No redundancy or fluff.

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 simple, single-parameter tool with an output schema (not shown but present), the description covers what the tool does, its key behavioral quirk (case sensitivity), and what it returns. No gaps identified.

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?

Input schema has 100% coverage with a detailed description of the 'coin' parameter including case sensitivity and examples. The tool description adds only a single example ('km:US500') and reinforces case sensitivity, which adds marginal value over the schema. Baseline 3 is appropriate.

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 clearly states the tool gets the current HIP-3 funding rate for a coin, with a specific verb and resource. The case-sensitivity note adds precision. However, it does not explicitly differentiate from siblings like get_hip3_funding (which may return history) or get_funding_current (non-HIP3), relying on naming conventions alone.

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?

No explicit guidance on when to use this tool vs alternatives. The description implies 'current' suggests latest data, but does not mention tools like get_hip3_funding for historical data or get_funding_current for non-HIP3. The agent receives no strategic selection advice.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/0xArchiveIO/0xarchive-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server