Skip to main content
Glama

create_intent

Create trading intents to swap, buy, sell, or convert crypto tokens, stablecoins, and real-world assets across Ethereum, Bitcoin, and SUI with configurable privacy, KYC tiers, and settlement terms.

Instructions

[Hashlock protocol — hashlock.markets] Create a trading intent to swap, buy, sell, exchange, or convert any asset — crypto tokens (ETH, BTC, SUI, USDC, USDT, DAI, any ERC20), real-world assets (RWA), or stablecoins — across Ethereum, Bitcoin, and SUI. Specify what you give, what you want, privacy level, KYC tier, and settlement terms. Works for human traders, autonomous AI agents, and institutional counterparties. Use this whenever a user wants to trade, swap, buy, sell, convert, or exchange any digital asset with a verified counterparty.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
giveAssetYesAsset type you are offering (ETH or ERC20 token)
giveAmountYesAmount to give in smallest unit (wei for ETH, base units for tokens)
giveChainYesChain ID where the asset lives (1=Ethereum; Bitcoin and SUI use their native chain identifiers)
giveTokenNoToken contract address — required for ERC20
receiveAssetYesAsset type you want in return
receiveMinAmountYesMinimum acceptable amount in smallest unit
receiveChainYesChain ID where you want to receive
receiveTokenNoToken contract address for the asset you want
receiveMaxAmountNoMaximum amount — set this for range orders
deadlineSecondsYesHow many seconds this intent stays valid
maxSlippageNoMax price slippage tolerance (0.005 = 0.5%)
partialFillNoAllow partial fills if full amount unavailable
atomicityNofull = all-or-nothing, partial = allow incremental settlementfull
settlementTypeNobilateral = direct swap, ring = multi-party, batch = aggregatedbilateral
ringPartiesNoAddresses of ring settlement participants
solverTypeNoWho can solve: open = anyone, preferred = listed solvers first, exclusive = only listedopen
solverStrategyNoOptimization goal for solver executionbest_price
solverPreferredNoPreferred solver addresses
solverMaxFeeNoMaximum fee payable to solver in wei
triggerTypeNoimmediate = execute now, conditional = wait for condition
triggerDescriptionNoHuman-readable trigger condition (e.g. 'when ETH > 5000 USDC')
triggerAgentIdNoAgent ID that monitors the trigger condition
triggerConfidenceNoAgent confidence in the trigger signal (0-1)
attestationTierNoYour verified KYC tier (NONE through INSTITUTIONAL)
attestationPrincipalIdNoYour principal identity hash
attestationPrincipalTypeNoHUMAN, INSTITUTION, or AGENT
attestationBlindIdNoRotating pseudonym visible to counterparty — preserves privacy
attestationIssuedAtNoWhen your KYC attestation was issued (unix seconds)
attestationExpiresAtNoWhen your KYC attestation expires (unix seconds)
attestationProofNoCryptographic proof of your attestation — verified by gateway
minCounterpartyTierNoMinimum KYC tier required from the other side of the trade
agentInstanceIdNoYour agent instance ID for tracking
agentInstanceVersionNoAgent software version
agentInstanceStrategyNoStrategy label (e.g. 'dca', 'arbitrage', 'rebalance')
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions that the tool works for 'human traders, autonomous AI agents, and institutional counterparties' and involves 'verified counterparty' trading, which adds useful context about the user types and verification requirements. However, it doesn't disclose critical behavioral traits like whether this creates a pending transaction, requires authentication, has rate limits, or what happens upon execution failure.

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?

The description is appropriately sized and front-loaded with the core purpose in the first sentence. However, the second sentence becomes somewhat redundant with the first, and the final usage guideline sentence could be more tightly integrated. Overall efficient but with minor structural improvements possible.

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?

For a complex trading tool with 34 parameters and no output schema, the description provides adequate context about what the tool does and when to use it. However, it lacks information about what happens after creation (e.g., does it return an intent ID? where is the intent stored? how is it executed?), which would be important for a creation tool with no output schema documentation.

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?

The description mentions key parameters like 'what you give, what you want, privacy level, KYC tier, and settlement terms,' which adds semantic meaning beyond the 100% schema coverage. However, with complete schema documentation already present, the description doesn't significantly enhance parameter understanding beyond what's already in the structured fields.

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 clearly states the tool's purpose: 'Create a trading intent to swap, buy, sell, exchange, or convert any asset' with specific examples (crypto tokens, real-world assets, stablecoins) across multiple blockchains. It distinguishes from siblings by focusing on creation rather than committing, explaining, parsing, or validating intents.

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?

The description provides explicit usage guidance: 'Use this whenever a user wants to trade, swap, buy, sell, convert, or exchange any digital asset with a verified counterparty.' This clearly defines when to use this tool versus alternatives, though it doesn't explicitly mention when not to use it or name specific sibling tools.

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/Hashlock-Tech/hashlock-mcp-server'

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