Skip to main content
Glama
MoralisWeb3

Moralis MCP Server

Official
by MoralisWeb3

solana_getswapsbypairaddress

Retrieve swap transactions for a Solana token pair, including buys, sells, and liquidity changes, to analyze trading activity and liquidity flows.

Instructions

Get all swap related transactions (buy, sell, add liquidity & remove liquidity) for a specific pair address.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
networkYesThe network to query
pairAddressYesThe address of the pair to query
limitNoThe limit per page
cursorNoThe cursor to the next page
orderNoThe order of itemsDESC
fromDateNoThe starting date (format in seconds or datestring accepted by momentjs)
toDateNoThe ending date (format in seconds or datestring accepted by momentjs)
transactionTypesNoTransaction types to fetch. Possible values: 'buy', 'sell', 'addLiquidity' or 'removeLiquidity' separated by commabuy,sell,addLiquidity,removeLiquidity
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It states what data is retrieved but doesn't mention important behavioral aspects like pagination behavior (implied by cursor parameter but not explained), rate limits, authentication requirements, error conditions, or response format. The description is minimal and lacks operational context.

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 a single, efficient sentence that communicates the core purpose without unnecessary words. It's appropriately sized for a data retrieval tool and front-loads the essential information about what transactions are retrieved and for what resource.

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

Completeness2/5

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

For a tool with 8 parameters, no annotations, and no output schema, the description is insufficiently complete. It doesn't explain the response structure, pagination behavior, or operational constraints. While the schema covers parameters well, the description fails to provide the contextual information needed to use this tool effectively in practice.

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?

With 100% schema description coverage, the schema already documents all 8 parameters thoroughly. The description doesn't add any meaningful parameter semantics beyond what's in the schema - it mentions 'pair address' which is already covered, but provides no additional context about parameter interactions, defaults, or usage patterns.

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 verb ('Get') and resource ('all swap related transactions') with specific scope ('for a specific pair address'), listing the exact transaction types included (buy, sell, add liquidity, remove liquidity). It distinguishes from sibling tools like solana_getswapsbytokenaddress and solana_getswapsbywalletaddress by specifying it's for pair addresses rather than token or wallet addresses.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. While it implicitly indicates this is for pair addresses, it doesn't mention when to choose this over other swap-related tools like solana_getswapsbytokenaddress or solana_getswapsbywalletaddress, nor does it discuss prerequisites or limitations.

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/MoralisWeb3/moralis-mcp-server'

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