# AMI Agent — MCP Endpoint

This document describes the Model Context Protocol (MCP) capabilities of an AI agent registered on-chain via the [AMI Finance](https://app.ami.finance) agentic workflow platform.

## Overview

This agent is registered on the **ERC-8004 Identity Registry** on Avalanche C-Chain. Its identity, metadata, and service endpoints are stored immutably on-chain as an ERC-721 NFT.

- **Standard**: [ERC-8004 — Decentralized AI Agent Identity](https://eips.ethereum.org/EIPS/eip-8004)
- **Registry Contract**: `0x8004A169FB4a3325136EB29fA0ceB6D2e539a432` (Avalanche C-Chain)
- **Protocol Version**: MCP 2025-06-18

## Capabilities

This agent is powered by AMI Finance's **Workflow Builder**, a visual automation tool for complex DeFi and cross-service operations. The agent can execute any workflow built with the following action categories:

### Triggers
- **Manual**, **Interval**, **Cron Schedule**, **Run Once**
- **Webhook** — exposes an HTTP endpoint; the request payload becomes the trigger output
- **Telegram / Discord Message** — trigger on incoming messages from bots

### AI
- **OpenAI Chat**, **Claude Chat**, **Grok Chat**, **Gemini Chat**
- **Sentiment Analysis**, **Summarize**, **Translate**, **Extract Data**, **Classify**, **Rewrite**
- **Template Writer** — fill a text template with variables
- **Replicate Run Model**, **Hugging Face Inference**

### DeFi
- **Swap**: Velora, Odos, LFJ, Best Quote / Best Swap (multi-DEX routing)
- **Buy / Sell**: with native, with stablecoins, by % balance, at price targets
- **Lending / Borrowing**: Salvor & Aave V3 — supply, withdraw, borrow, repay, flash loans
- **Liquidity**: add / remove liquidity, get pool info
- **Staking**: stake, unstake, claim rewards, get pending rewards
- **Health Monitoring**: health factor checks, liquidation alerts, max borrow calculations

### Wallet Operations
- Get balances (native, token, all), send native/token, approve, check allowance
- Transfer all, get nonce, get gas price, get token info

### RPC / Blockchain
- Query balances, transactions, receipts, blocks, gas prices, nonces
- Read-only contract calls, gas estimation

### Social & Messaging
- **Twitter**: post, reply, quote, retweet, like, follow, search, get user/tweet
- **Telegram**: send message/photo/document, edit, delete, pin
- **Discord**: send message/embed, edit, delete (webhook-based)
- **Twilio**: SMS and WhatsApp
- **Mailchimp**: add subscriber, send campaign
- **SendGrid**: send email
- **YouTube**: list/get videos

### Data Sources
- **CoinGecko**: price, info, trending
- **DexScreener**: token lookup, search
- **Arena**: token info, user profile
- **Frosty**: metrics, holder analysis
- **AvaCloud**: data API, transaction, balance
- **Databases**: Supabase (select/insert/update), MongoDB (find/insert/update)

### HTTP / Webhooks
- GET, POST, PUT, PATCH, DELETE
- Signed webhooks, GraphQL queries

### AMI Tools
- **Volume Booster**: start/stop/status/list volume tasks
- **Airdrops**: send tokens, send native, from CSV, equal split

### Transform / Utilities
- Variables (set/get/delete), math, string ops (concat/replace/transform)
- Array ops (filter/map/reduce/unique), object field access
- JSON parse/stringify, date utilities, merge, split, aggregate

### Productivity & Collaboration
- **Slack**: send/update messages, reactions, file upload
- **Google Sheets**: read, append, update
- **Notion**: create page, query/add to database
- **Airtable**: list/create/update records
- **Google Drive**: upload/list/download
- **Dropbox**: upload/download
- **Google Calendar**: create/list events
- **Trello**: create/move cards
- **Asana**: create/update tasks
- **Stripe**: create charge/customer/invoice
- **Microsoft Teams**: send message, list channels
- **Email (SMTP)**: send email
- **Typeform**: get responses
- **Shopify**: get/list orders, create product

### Dev Tools
- **GitHub**: create issue, add comment, get repo, create PR
- **Jira**: create/update issue
- **Linear**: create issue
- **AWS S3**: upload/download/list objects

### Control Flow
- Pause / Wait, If–Else, Switch, Router (parallel branches)
- For Each, Repeat N Times, While loop
- Sticky Notes (canvas annotations)

## Documentation

- **Workflow Builder Overview**: [docs.amichain.org/tools/workflow-builder](https://docs.amichain.org/tools/workflow-builder/)
- **Action Types Inventory**: [docs.amichain.org/tools/workflow-builder/action-types](https://docs.amichain.org/tools/workflow-builder/action-types)
- **Adding Connections**: [docs.amichain.org/tools/workflow-builder/adding-connections](https://docs.amichain.org/tools/workflow-builder/adding-connections)
- **Video Tutorial**: [YouTube — Intro to Workflow Builder](https://www.youtube.com/watch?v=RZui-M-5LRo)

## Community

- Website: [ami.finance](https://ami.finance)
- GitHub: [github.com/amichain](https://github.com/amichain)
- Twitter: [@amichainORG](https://x.com/amichainORG)
- Telegram: [t.me/amichain](https://t.me/amichain)
- Discord: [discord.amichain.org](https://discord.amichain.org/)
