Skip to main content
Glama
Haiku-Trading

Haiku DeFi MCP

Official

Server Quality Checklist

75%
Profile completionA complete profile improves this server's visibility in search results.
  • Latest release: v0.0.8

  • Disambiguation4/5

    Tools have mostly distinct purposes: portfolio analysis, yield discovery, token queries, balance checking, quoting, execution, and signature preparation. However, haiku_execute and haiku_prepare_signatures have overlapping concerns around execution paths, which could cause some confusion.

    Naming Consistency5/5

    All tools follow a consistent haiku_verb_noun pattern (analyze_portfolio, discover_yields, execute, get_balances, get_quote, get_tokens, prepare_signatures). The naming is predictable and intuitive.

    Tool Count5/5

    Seven tools is an appropriate number for a DeFi MCP server covering portfolio analysis, yield discovery, quoting, execution, and token/balance queries. Each tool serves a clear purpose without unnecessary bloat.

    Completeness5/5

    The tool set covers the full lifecycle of DeFi interactions: discovery (haiku_discover_yields, haiku_get_tokens), analysis (haiku_analyze_portfolio, haiku_get_balances), quoting (haiku_get_quote), and execution (haiku_execute, haiku_prepare_signatures). No obvious gaps for typical DeFi workflows.

  • Average 4.5/5 across 7 of 7 tools scored.

    See the Tool Scores section below for per-tool breakdowns.

    • 0 of 1 community issues answered or closed in the last 6 months
    • 0 commits in the last 12 weeks
    • No stable releases found
    • No critical vulnerability alerts
    • No high-severity vulnerability alerts
    • No code scanning findings
    • CI is failing
  • This repository is licensed under MIT License.

  • This repository includes a README.md file.

  • No tool usage detected in the last 30 days. Usage tracking helps demonstrate server value.

    Tip: use the "Try in Browser" feature on the server page to seed initial usage.

  • This repository includes a glama.json configuration file.

  • If you are the author, simply .

    If the server belongs to an organization, first add glama.json to the root of your repository:

    {
      "$schema": "https://glama.ai/mcp/schemas/server.json",
      "maintainers": [
        "your-github-username"
      ]
    }

    Then . Browse examples.

  • Add related servers to improve discoverability.

How to sync the server with GitHub?

Servers are automatically synced at least once per day, but you can also sync manually at any time to instantly update the server profile.

To manually sync the server, click the "Sync Server" button in the MCP server admin interface.

How is the quality score calculated?

The overall quality score combines two components: Tool Definition Quality (70%) and Server Coherence (30%).

Tool Definition Quality measures how well each tool describes itself to AI agents. Every tool is scored 1–5 across six dimensions: Purpose Clarity (25%), Usage Guidelines (20%), Behavioral Transparency (20%), Parameter Semantics (15%), Conciseness & Structure (10%), and Contextual Completeness (10%). The server-level definition quality score is calculated as 60% mean TDQS + 40% minimum TDQS, so a single poorly described tool pulls the score down.

Server Coherence evaluates how well the tools work together as a set, scoring four dimensions equally: Disambiguation (can agents tell tools apart?), Naming Consistency, Tool Count Appropriateness, and Completeness (are there gaps in the tool surface?).

Tiers are derived from the overall score: A (≥3.5), B (≥3.0), C (≥2.0), D (≥1.0), F (<1.0). B and above is considered passing.

Tool Scores

  • Behavior3/5

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

    With no annotations provided, the description must disclose behavioral traits. It explains optional wallet address derivation from environment variable and the partial refresh behavior. However, it doesn't mention rate limits, data freshness, or what happens if the wallet address is invalid. Adequate but not comprehensive.

    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 two sentences with a clear structure: first sentence states purpose, second elaborates on parameters and return values. It is front-loaded and efficient, though the list of chain IDs could be trimmed.

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

    Completeness4/5

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

    Given no output schema, the description explicitly lists return fields (balances, USD prices, portfolio value, categories). It covers the two parameters well. For a simple query tool, this is complete enough. Missing details about error handling or data freshness, but acceptable.

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

    Parameters4/5

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

    Schema coverage is 100%, so baseline is 3. The description adds significant value by explaining the partial refresh use case for chainIds, providing common chain IDs and examples. For walletAddress, it clarifies optionality and auto-derivation. This goes beyond schema descriptions.

    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 retrieves token balances for a wallet address. It specifies the default behavior (all chains) and contrasts with a common variant (partial refresh with chainIds). This distinguishes it from siblings like haiku_analyze_portfolio which likely provides deeper analysis rather than raw balances.

    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?

    The description explains when to use the tool (get balances) and when to use the chainIds parameter (after a swap for faster partial refresh). It doesn't explicitly exclude other scenarios or mention alternatives among siblings, but the context is clear.

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

  • Behavior3/5

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

    No annotations provided, so description carries full burden. It discloses that the tool returns token IIDs, symbols, names, prices, and chain information, and explains the IID format. However, it doesn't mention if this is a read-only operation, potential rate limits, or any side effects.

    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 concise with 4 sentences, front-loading the main purpose. Each sentence adds value. Could be slightly shorter by removing redundant 'Use the IID format' since schema already describes it, but still efficient.

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

    Completeness4/5

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

    Given the tool has 2 optional parameters and no output schema, the description adequately explains purpose, return data, and usage guidance. The context signals show low complexity, and the description is sufficient for an AI agent to invoke correctly.

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

    Parameters4/5

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

    Schema coverage is 100%, with both parameters having detailed descriptions. The description adds context beyond schema by listing token types and explaining IID format. The enum values are also clarified in description, but schema already covers them.

    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 retrieves supported tokens and DeFi positions for trading, listing specific types like vanilla tokens, Aave collateral/debt, yield vaults, and LP tokens. This differentiates it from siblings like haiku_get_balances (balances) and haiku_analyze_portfolio (portfolio analysis) by focusing on supported token metadata.

    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?

    The description explains when to use category filter and gives an example ('collateral' for Aave aTokens). It also instructs to use IID format in other tools. However, it does not explicitly state when not to use this tool or compare to alternatives like haiku_get_balances for balances.

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

  • Behavior4/5

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

    No annotations provided, so description carries full burden. It discloses that results include APY, TVL, risk parameters, and token IIDs, and that the iid field is usable in haiku_get_quote. However, it does not mention rate limits, pagination behavior, or response size limits beyond the 'limit' parameter.

    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?

    Concise at three sentences. The first sentence states purpose, second lists outputs and downstream use, third provides examples. Every sentence adds value. Slightly verbose in the last sentence with multiple examples, but still efficient.

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

    Completeness4/5

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

    Given 6 parameters with 100% schema coverage and no output schema, the description effectively explains the tool's purpose and output semantics. It could be improved by describing the risk parameters' nature (e.g., risk score vs. qualitative), but overall adequate.

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

    Parameters4/5

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

    Schema coverage is 100%, so baseline is 3. The description adds value by explaining the iid field's downstream use and by including example questions. However, it does not add new meaning beyond the schema for most parameters, as the schema already has clear descriptions for each.

    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 discovers yield opportunities across DeFi protocols and lists specific output fields (APY, TVL, risk parameters, token IIDs). It distinguishes itself from siblings like haiku_get_quote by explaining the iid output can be used as input for that tool.

    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?

    Provides explicit example questions for when to use the tool, such as 'best lending yields on Arbitrum' or 'highest APY vaults with at least $1M TVL'. It also explains how the output connects to haiku_get_quote, guiding the agent on downstream usage.

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

  • Behavior4/5

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

    No annotations are provided, so the description carries full burden. It transparently explains that the tool returns EIP-712 signing payloads when signatures are required and outlines the two execution paths. However, it does not disclose potential side effects, rate limits, or authorization requirements beyond the receiver field note.

    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 well-structured with bullet points for the two execution paths, making it easy to parse. It is slightly verbose due to the detailed path explanations, but every sentence adds value and avoids repetition.

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

    Completeness4/5

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

    Given the tool's complexity (nested objects, multiple execution paths, no output schema), the description covers the key aspects: what the tool returns, how to proceed after getting a quote, and parameter details. However, it could be improved by mentioning that no output schema exists, so the agent must infer the response structure.

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

    Parameters4/5

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

    Schema description coverage is 100%, so baseline is 3. The description adds value by explaining the IID format and providing examples for inputPositions and targetWeights, as well as clarifying the receiver parameter's behavior based on private key presence. However, it does not elaborate on slippage beyond its default value.

    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 fetches a quote for token swaps or portfolio rebalances, listing expected outputs like fees, gas estimates, and required approvals. It also distinguishes this tool from siblings by detailing its role as the first step in a multi-tool execution flow.

    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 guidance on when to use this tool (before execution) and details two distinct execution paths (Path A with private key, Path B with external wallet) including step-by-step instructions and sibling tool names like haiku_execute and haiku_prepare_signatures.

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

  • Behavior4/5

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

    Since no annotations are provided, the description must disclose behavior. It explains that the tool extracts/normalizes EIP-712 payloads and does not execute the transaction, which is crucial. It also indicates it's a read-only preparation step, not destructive. However, it doesn't mention any authorization requirements or side effects, but given the tool's nature (signature preparation), the description is largely transparent.

    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 two sentences and efficiently conveys purpose, usage, and parameter guidance. It could be slightly more concise by removing the last sentence about post-signing steps (which might belong in haiku_execute's description), but overall it's well-structured and front-loaded.

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

    Completeness4/5

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

    Given no output schema, the description implicitly covers return values (normalized EIP-712 payloads). It addresses the tool's role in a multi-step process (sign then execute). It lacks detail on the output format or error cases, but for a preparation tool with two optional params, it is reasonably complete.

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

    Parameters4/5

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

    Schema description coverage is 100%, so the schema already documents both parameters. The description adds value by explaining the preferred parameter (quoteId) and fallback (quoteResponse), and clarifying that quoteId allows server-side resolution from session cache. This goes beyond what the schema provides, justifying a score above baseline.

    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: preparing EIP-712 signatures for external wallets, distinguishing it from haiku_execute. It specifies the resource ('EIP-712 payloads from a quote') and the action ('extracts and normalizes'), making it distinct from siblings.

    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 explicitly tells when to use this tool (when WALLET_PRIVATE_KEY is not set or wallet MCP handles signing) and when not to (instead of passing directly to haiku_execute). It also provides guidance on which parameter to use (prefer quoteId, fallback to quoteResponse), and what to do after ('pass permit2Signature and/or userSignature to haiku_execute').

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

  • Behavior4/5

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

    No annotations provided, so description carries full burden. It discloses that the tool returns enriched positions with APY, health factors, and context-specific opportunities. While it doesn't detail side effects (likely none as it's read-only), the description is clear and trustworthy. Minor gap: doesn't explicitly state it's read-only.

    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?

    Three sentences, all informative. The first sentence states purpose and returns, the second gives usage guidance, the third provides workflow integration. Efficient and well-structured. Slight redundancy with 'context-specific opportunities' could be trimmed.

    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?

    Given the simple input (one string) and no output schema, the description fully covers what the tool does, returns, and how it fits into a workflow. No missing information for an agent to use it correctly.

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

    Parameters4/5

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

    Schema description coverage is 100% for the single parameter 'walletAddress', and the description already implies it's a wallet address. The description adds value by explaining the output is based on what the wallet holds, but the parameter itself is straightforward.

    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 analyzes a wallet's DeFi portfolio and surfaces yield opportunities, specifying what it returns (positions, APY options, health factors, opportunities). It uses specific verbs ('Analyze', 'surface') and distinguishes itself from sibling tools like haiku_discover_yields and haiku_execute.

    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?

    Explicitly states when to use ('when a user asks what they should do with their portfolio or wants yield optimization advice') and provides clear guidance on pairing with haiku_discover_yields for market context and haiku_get_quote for execution. No exclusions needed.

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

  • Behavior5/5

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

    No annotations provided, so description carries full burden. It fully discloses the tool's behavior: two distinct execution modes, signing internal vs external, broadcasting behavior (broadcast: true/false), and the transaction output format (tx hash vs { to, data, value, chainId }). No contradictions with annotations since none exist.

    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?

    The description is well-structured with bullet points for two clear paths, front-loading the main purpose. Every sentence adds value with no redundancy. Length is appropriate for the complexity.

    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?

    Given 8 parameters with 100% schema coverage, no output schema, and high complexity (two modes, nested objects), the description fully covers usage flow, parameter dependencies, and return format for both paths. No gaps identified.

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

    Parameters4/5

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

    Schema description coverage is 100%, so baseline is 3. The description adds significant value beyond schema by explaining when each parameter is needed (e.g., approvals in self-contained vs external mode, permit2SigningPayload vs permit2Signature based on path). The 'broadcast' parameter's effect is clarified. Minor deduction for not detailing the nested objects' structure (e.g., approval {to, data}) beyond what schema provides.

    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 'Execute a quote' and distinguishes two paths (self-contained vs external wallet), which differentiates it from sibling tools like haiku_get_quote or haiku_prepare_signatures. The verb 'execute' plus resource 'quote' is specific and unambiguous.

    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 step-by-step instructions for both Path A and Path B, including when to call haiku_get_quote first, when to use haiku_prepare_signatures, and when to broadcast approvals via wallet MCP. It clearly states alternatives and when not to use certain parameters.

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

GitHub Badge

Glama performs regular codebase and documentation scans to:

  • Confirm that the MCP server is working as expected.
  • Confirm that there are no obvious security issues.
  • Evaluate tool definition quality.

Our badge communicates server capabilities, safety, and installation instructions.

Card Badge

haiku-mcp-server MCP server

Copy to your README.md:

Score Badge

haiku-mcp-server MCP server

Copy to your README.md:

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/Haiku-Trading/haiku-mcp-server'

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