Skip to main content
Glama

Get Pair

get_pair
Read-onlyIdempotent

Pair detail (price USD/native, liquidity, 24h volume, 5m/1h/6h/24h tx counts).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainYesChain id — ethereum | solana | bsc | polygon | arbitrum | base | …
pair_addressYesPair / pool address

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainYesChain id that was queried
pairsYesMatching pairs
pair_countYesNumber of pairs returned (>=1; an empty result raises not_found)
pair_addressYesPair address that was queried

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "chain": "ethereum",
      -    "pair_address": "0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640"
      -  },
      -  {
      -    "chain": "solana",
      -    "pair_address": "8BnEgHoWFysVcuFFX7QztDmzuH5B27Cs64meL2LjwGs"
      -  }
      -]New value: +[
      +  {
      +    "chain": "ethereum",
      +    "pair_address": "0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640"
      +  },
      +  {
      +    "chain": "solana",
      +    "pair_address": "58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2"
      +  }
      +]
    • changedOutput schema / description
      Previous value: -"Pair detail response from DEX Screener API"New value: +"Pair detail for one pair address on one chain"
    • addedOutput schema / properties / chain
      Added value: +{
      +  "description": "Chain id that was queried",
      +  "type": "string"
      +}
    • removedOutput schema / properties / pair
      Removed value: -{
      -  "description": "Pair information including price, liquidity, and volume",
      -  "properties": {
      -    "baseToken": {
      -      "description": "Base token details",
      -      "properties": {
      -        "address": {
      -          "description": "Token contract address",
      -          "type": "string"
      -        },
      -        "name": {
      -          "description": "Token name",
      -          "type": "string"
      -        },
      -        "symbol": {
      -          "description": "Token symbol",
      -          "type": "string"
      -        }
      -      },
      -      "type": "object"
      -    },
      -    "chainId": {
      -      "description": "Chain identifier",
      -      "type": "string"
      -    },
      -    "dexId": {
      -      "description": "DEX identifier",
      -      "type": "string"
      -    },
      -    "fdv": {
      -      "description": "Fully diluted valuation",
      -      "type": [
      -        "number",
      -        "null"
      -      ]
      -    },
      -    "liquidity": {
      -      "description": "Liquidity data",
      -      "properties": {
      -        "base": {
      -          "description": "Base token liquidity",
      -          "type": [
      -            "number",
      -            "null"
      -          ]
      -        },
      -        "quote": {
      -          "description": "Quote token liquidity",
      -          "type": [
      -            "number",
      -            "null"
      -          ]
      -        },
      -        "usd": {
      -          "description": "Total liquidity in USD",
      -          "type": [
      -            "number",
      -            "null"
      -          ]
      -        }
      -      },
      -      "type": "object"
      -    },
      -    "marketCap": {
      -      "description": "Market capitalization",
      -      "type": [
      -        "number",
      -        "null"
      -      ]
      -    },
      -    "pairAddress": {
      -      "description": "Pair/pool contract address",
      -      "type": "string"
      -    },
      -    "priceNative": {
      -      "description": "Price in native token",
      -      "type": "string"
      -    },
      -    "priceUsd": {
      -      "description": "Price in USD",
      -      "type": "string"
      -    },
      -    "quoteToken": {
      -      "description": "Quote token details",
      -      "properties": {
      -        "address": {
      -          "description": "Token contract address",
      -          "type": "string"
      -        },
      -        "name": {
      -          "description": "Token name",
      -          "type": "string"
      -        },
      -        "symbol": {
      -          "description": "Token symbol",
      -          "type": "string"
      -        }
      -      },
      -      "type": "object"
      -    },
      -    "txns": {
      -      "description": "Transaction counts",
      -      "properties": {
      -        "h1": {
      -          "type": "object"
      -        },
      -        "h24": {
      -          "type": "object"
      -        },
      -        "h6": {
      -          "type": "object"
      -        },
      -        "m5": {
      -          "type": "object"
      -        }
      -      },
      -      "type": "object"
      -    },
      -    "url": {
      -      "description": "URL to pair on DEX Screener",
      -      "type": "string"
      -    },
      -    "volume": {
      -      "description": "Volume data",
      -      "properties": {
      -        "h24": {
      -          "description": "24-hour volume in USD",
      -          "type": [
      -            "number",
      -            "null"
      -          ]
      -        }
      -      },
      -      "type": "object"
      -    }
      -  },
      -  "type": "object"
      -}
    • addedOutput schema / properties / pair_address
      Added value: +{
      +  "description": "Pair address that was queried",
      +  "type": "string"
      +}
    • addedOutput schema / properties / pair_count
      Added value: +{
      +  "description": "Number of pairs returned (>=1; an empty result raises not_found)",
      +  "type": "number"
      +}
    • addedOutput schema / properties / pairs
      Added value: +{
      +  "description": "Matching pairs",
      +  "items": {
      +    "properties": {
      +      "baseToken": {
      +        "description": "Base token address/name/symbol",
      +        "type": "object"
      +      },
      +      "chainId": {
      +        "description": "Chain identifier",
      +        "type": "string"
      +      },
      +      "dexId": {
      +        "description": "DEX identifier",
      +        "type": "string"
      +      },
      +      "fdv": {
      +        "description": "Fully diluted valuation",
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "liquidity": {
      +        "description": "Liquidity in USD and both tokens",
      +        "type": "object"
      +      },
      +      "marketCap": {
      +        "description": "Market capitalisation",
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "pairAddress": {
      +        "description": "Pair/pool contract address",
      +        "type": "string"
      +      },
      +      "priceNative": {
      +        "description": "Price in the quote token",
      +        "type": "string"
      +      },
      +      "priceUsd": {
      +        "description": "Price in USD",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "quoteToken": {
      +        "description": "Quote token address/name/symbol",
      +        "type": "object"
      +      },
      +      "txns": {
      +        "description": "Buy/sell counts over m5/h1/h6/h24",
      +        "type": "object"
      +      },
      +      "url": {
      +        "description": "URL to pair on DEX Screener",
      +        "type": "string"
      +      },
      +      "volume": {
      +        "description": "Volume over m5/h1/h6/h24",
      +        "type": "object"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / required
      Added value: +[
      +  "chain",
      +  "pair_address",
      +  "pair_count",
      +  "pairs"
      +]
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint, and destructiveHint=false, covering the safety profile. The description adds useful context by listing the exact data fields returned, which helps the agent set expectations. No contradiction with annotations; adds modest behavioral detail beyond the structured fields.

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 sentence that front-loads the purpose ('Pair detail') and lists the specific data points efficiently. No redundancy or wasted words, making it easy to parse quickly.

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?

For a simple read-only tool with a full output schema, the description is complete. It states what the tool does, the parameters are documented in the schema, and the output is covered by the output schema. No missing critical information for an agent to invoke it correctly.

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?

Schema description coverage is 100%, with both parameters (chain and pair_address) already documented. The description does not add any additional parameter-specific meaning or formatting details. Baseline of 3 is appropriate because the schema fully covers the parameters.

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 pair detail and enumerates the specific data fields (price USD/native, liquidity, 24h volume, and multiple tx counts). This distinguishes it from siblings like get_token (token-focused) and search_pairs (discovery), making the purpose unambiguous.

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 implies usage: when you have a pair address and chain and need its detail. It does not explicitly mention when not to use it or name alternatives, but the context of siblings (e.g., search_pairs for finding pairs, get_token for token data) makes the selection reasonably clear. Lacks explicit exclusion but provides clear context.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.