Skip to main content
Glama

APEX x402 Full MCP Hub

Lp position

lp_position

Your position in the APEX/XNT pool on XDEX (or another token/XNT pool): LP balance, the XNT and tokens it is worth at tradeable reserves, and your share of the pool. Also the live price, trade fee and depth. Read from chain.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "wallet": "<wallet>"
    },
    "name": "lp_position"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenNoToken mint address, or APEX (default).
walletYesYour X1 wallet public key.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses that data is read from chain and that values are based on tradeable reserves, but it does not mention permissions, freshness, rate limits, or what happens when the wallet has no position in the pool.

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 front-loaded with the core purpose and then lists the returned values efficiently. It is appropriately sized, with only minor density in the parenthetical alternative-pool clause.

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?

For a two-parameter read tool with no output schema, the description does a good job enumerating what the caller gets back: LP balance, underlying value, pool share, live price, fee, and depth. It is nearly complete, though it could clarify chain context and empty-position behavior.

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%, so both parameters are already documented. The description reinforces that token defaults to APEX and can refer to another token/XNT pool, but adds no syntax or format details beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific resource and scope: the user's LP position in the APEX/XNT pool on XDEX, or another token/XNT pool. It lists the returned data (LP balance, token/XNT value, pool share, live price, fee, depth), making the tool's purpose clear, though it does not explicitly distinguish itself from siblings such as lp_add_build or arc_pools.

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

Usage Guidelines3/5

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

Usage is implied by 'Your position' and 'Read from chain' — an agent can infer this is for checking an existing LP position. However, there is no explicit when-to-use guidance, no exclusions, and no named alternative for related tasks like adding liquidity or checking pool metadata.

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.