Skip to main content
Glama
gblinproject

@gblin-protocol/mcp-server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GBLIN_RPC_URLNoThe RPC URL for Base mainnet. Falls back to a public endpoint if not set.https://base-rpc.publicnode.com

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_treasury_stateA

Read the current GBLIN protocol state on Base mainnet: NAV in USD, basket composition with dynamic weights, and Crash Shield status. Use this BEFORE any swap to know the current price and risk regime.

quote_safe_swapA

Preview a buy (ETH→GBLIN) or sell (GBLIN→ETH) without executing. Returns expected output, safe minOut with dynamic slippage buffer (2.5% normal / 4% during Crash Shield), and fee breakdown. Read-only.

swap_gblin_to_usdc_jitA

Generate ready-to-broadcast calldata that converts GBLIN → USDC in a single atomic transaction via the contract's native sellGBLINForToken function. Works on any wallet (EOA, ERC-4337 smart account, EIP-7702). Use this immediately before paying an x402 invoice.

invest_usdc_to_gblinA

Generate calldata to convert USDC earnings into GBLIN (treasury accumulation). Returns two sequential steps: (1) approve USDC, (2) call buyGBLINWithToken. Includes properly-quoted minOut values to prevent MEV sandwich attacks — never accepts 0 minOut.

analyze_treasury_healthA

Analyze an agent wallet's treasury health: GBLIN/USDC/ETH balances, gas runway, and (if daily_burn_usd provided) days of operational runway plus rebalance recommendation. Critical for autonomous decision-making.

get_governance_stateA

Verify GBLIN protocol governance state: confirms whether GBLIN_V5 is owned by the 48h Timelock, reads the timelock's min delay and grace period, reports role member counts, and surfaces any pending asset-addition proposal on the index contract. If an operation_id is provided, also reports the status of that specific timelock operation. Read-only — use this to gate trust-sensitive agent actions.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/gblinproject/GBLIN-MCP'

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