Skip to main content
Glama

FarmDash Agent OS

prepare_perp_order

Read-onlyIdempotent

Prepare an exact zero-custody Hyperliquid order for local EIP-712 signing. FarmDash returns the action, typed data, nonce, expiry and intent hash but never signs or submits. New-risk preparation requires a fresh execution-ready analysis; reduce-only preparation remains authority-bound at execution.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "agentAddress": "<agentAddress>",
      "coin": "<coin>",
      "isBuy": "<isBuy>",
      "size": "<size>",
      "price": "<price>",
      "orderType": "<orderType>"
    },
    "name": "prepare_perp_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
coinYes
sizeYes
isBuyYes
nonceNo
priceYes
grantIdNo
leverageNo
expiresAtNo
orderTypeYes
sessionIdNo
reduceOnlyNo
agentAddressYes
sessionTokenNo
executionModeNoUSER_SIGNED
accountAddressNo
continuationIdNo
executionTrialIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/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 is consistent with them, adding the non-custody guarantee and the exact payload returned (action, typed data, nonce, expiry, intent hash). It does not discuss auth/session requirements for the 17 parameters or any rate/expiry behavior beyond a passing mention of expiry.

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?

Two tight sentences, front-loaded with the core action and the no-signing guarantee. The closing clause about reduce-only being 'authority-bound at execution' is terse to the point of being cryptic, but nothing is redundant.

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

Completeness3/5

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

The description adequately frames the output (no output schema exists, and the returned fields are listed) and the custody model. However, for a 17-parameter, 6-required tool with undocumented fields and two execution modes, it leaves an agent under-informed about how to populate most inputs.

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

Parameters2/5

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

With 17 parameters at 0% schema description coverage, the description must carry the burden and does not. It never explains grantId, sessionId, sessionToken, executionMode (USER_SIGNED vs BOUNDED_AUTONOMOUS), continuationId, executionTrialId, or leverage, all of which are non-obvious and critical to a correct call.

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 ('Prepare'), a specific resource ('zero-custody Hyperliquid order') and the exact purpose ('for local EIP-712 signing'). It also distinguishes itself from execution siblings by explicitly saying FarmDash 'never signs or submits,' so an agent can tell it apart from execute_perp_order without opening another 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?

Gives a real precondition: new-risk preparation 'requires a fresh execution-ready analysis,' and notes reduce-only orders stay 'authority-bound at execution,' which tells the agent the two paths differ. It stops short of naming the analysis or authorization tools to call first, so routing is implied rather than explicit.

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