haystack-router-interaction

haystack-router-interaction is a skill for Claude Code, Codex from GoPlausible/algorand-mcp. It costs 65 tokens per session (1,903 once invoked), scanned A, original, MIT.

A workflow for finding and executing token swaps on Algorand, a blockchain network, through Haystack Router, which compares routes across decentralised exchanges.

In plain words
What is it for?
Comparing swap prices and routes, previewing price impact, checking asset opt-in status, and executing atomic Algorand swaps.
Why use it?
It provides quotes before a swap, checks whether an account is ready for an asset, and uses an MCP wallet to sign transactions without handling secret keys directly.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Comparing swap prices and routes, previewing price impact, checking asset opt-in status, and executing atomic Algorand swaps.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/goplausible/algorand-mcp/haystack-router-interaction
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add GoPlausible/algorand-mcp --skill haystack-router-interaction
Clone the repo
git clone --depth 1 https://github.com/GoPlausible/algorand-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for haystack-router-interaction

README.md
[![agentmods](https://agentmods.dev/badge/skills/goplausible/algorand-mcp/haystack-router-interaction/github.svg)](https://agentmods.dev/skills/goplausible/algorand-mcp/haystack-router-interaction)
Your own site
<a href="https://agentmods.dev/skills/goplausible/algorand-mcp/haystack-router-interaction"><img src="https://agentmods.dev/badge/skills/goplausible/algorand-mcp/haystack-router-interaction/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for haystack-router-interaction

Your own site · 80×15
<a href="https://agentmods.dev/skills/goplausible/algorand-mcp/haystack-router-interaction"><img src="https://agentmods.dev/badge/skills/goplausible/algorand-mcp/haystack-router-interaction.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,903 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00065 $0.01903
Opus 5 $0.00032 $0.00951
Sonnet 5 $0.00013 $0.00381
Haiku 4.5 $0.00006 $0.00190

Measured 10d ago against content hash d578de1e1198, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

haystack-router-interaction scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/haystack-router-interaction/SKILL.md · 145 lines

How it starts

The opening of the file, as written. The whole thing — 145 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Haystack Router (Interaction)

This skill is for interacting with Haystack Router through Algorand MCP tools — getting quotes, executing swaps, and checking opt-in status. All operations use the Algorand MCP wallet for signing; no SDK installation or API keys needed.

Building an application that integrates Haystack Router directly? Use the haystack-router-development skill instead — it covers the @txnlab/haystack-router SDK, React integration, Node.js automation, middleware, and the full API surface.

Haystack Router is a DEX aggregator and smart order routing protocol on Algorand. It finds optimal swap routes across multiple DEXes (Tinyman V2, Pact, Folks) and LST protocols (tALGO, xALGO), then executes them atomically through on-chain smart contracts.

Algorand MCP Haystack Router Tools

Three dedicated Algorand MCP tools provide full Haystack Router functionality. These handle quoting, execution (with wallet signing), and opt-in checking — no raw mnemonics or secret keys needed.

api_haystack_get_swap_quote

Get an optimized swap quote without executing. Use to preview pricing, route, and price impact before confirming with user.

-> api_haystack_get_swap_quote {
    fromASAID: 0,             // Input asset (0 = ALGO)
    toASAID: 31566704,        // Output asset (USDC)
    amount: 1000000,          // 1 ALGO in base units
    type: "fixed-input",      // or "fixed-output"
    address: "<address>",     // optional, for opt-in detection
    maxGroupSize: 16,         // optional
    maxDepth: 4,              // optional
    network: "mainnet"
  }

Returns: expectedOutput, inputAmount, usdIn, usdOut, userPriceImpact,
         route, flattenedRoute, requiredAppOptIns, protocolFees

api_haystack_execute_swap

All-in-one swap: quote -> sign (via wallet) -> submit -> confirm. Uses the active wallet account for signing.

-> api_haystack_execute_swap {
    fromASAID: 0,             // Input asset
    toASAID: 31566704,        // Output asset
    amount: 1000000,          // Amount in base units
    slippage: 1,              // 1% slippage tolerance
    type: "fixed-input",      // optional
    note: "my swap",          // optional text note
    maxGroupSize: 16,         // optional
    maxDepth: 4,              // optional
    network: "mainnet"
  }

Returns: status, confirmedRound, txIds, signer, nickname, quote details,
         summary (inputAmount, outputAmount, totalFees, transactionCount)

Read the full file on GitHub · 145 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 145 lines · 65 tokens per session scan A d578de1e1198

Subscribe to this mod's changes

haystack-router-interaction is a skill published in the GitHub repository GoPlausible/algorand-mcp (44 stars, last pushed 1mo ago), licensed MIT. It adds 65 tokens to every session and 1,903 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

xrocket-exchange

Use the unofficial xRocket Exchange MCP to inspect spot markets and accounts, trade autonomously inside an operator-configured daily value limit, or prepare explicitly approved transfers and withdrawals. Trigger when a request concerns xRocket markets, account data, deposits, trading, transfers, withdrawals, or its…

nakazanie-ton/myrocket · 87 tokens

openclaw-crypto-payments

Skill "openclaw-crypto-payments" from yedanyagamiai-cmd/openclaw-mcp-servers, covering openclaw crypto payments v2.0, what's new in v2.0, quick start, detection triggers and named protocols.

yedanyagamiai-cmd/openclaw-mcp-servers · 115 tokens

conviction-fm

Compete in daily crypto prediction competitions on conviction.fm. Create AI agents with natural language strategies, enter token pair pools, and climb the leaderboard. Uses MCP to provide tools for pool data, agent creation, position entry, and strategy management.

abcxz/conviction-fm · 53 tokens

x402-payments

Quote and settle OpenMesha x402 paywalled services (USDC on Base). Use when metering tool calls, outcome fees, or agent-to-agent settlement.

ANAMIZED/OpenMesha · 39 tokens

funding-usdc

Ensure every ANAMIZED repo has canonical non-custodial USDC addresses and FUNDING.yml.

ANAMIZED/YodMCP · 26 tokens

surf

Surf (asksurf.ai) is RETIRED on BlockRun and the blockrunsurf tool was REMOVED in 0.49.0 — the gateway has answered every /v1/surf/ path with HTTP 410 endpointretired since 2026-09-06. Use this skill to route a former Surf question (on-chain SQL, wallet labels and net worth, CEX order books, social mindshare, news) to…

BlockRunAI/blockrun-mcp · 110 tokens