The pricing MCP tools are included in the source for version 1.2.0; npm publication is pending. Until that release is available, use the public HTTP pricing endpoints below or build the MCP server from source. Account balance, usage, and provider tools are already available in published releases.
Choose your interface
Public HTTP endpoints do not need credentials. The local MCP server requires
ROUTEMESH_API_KEY at startup; add ROUTEMESH_MGMT_TOKEN to enable its customer tools. See MCP setup for client configuration.
Compare prices before choosing a route
Discover the chain ID usingrpc_list_chains, then ask:
Compare economy and performance prices for eth_call on Base.Call
rpc_get_pricing with chainId: 8453 and method: "eth_call". Omit routingStrategy to return both strategies. The equivalent public request is:
vm, chain_id, method, routing_strategy, and price_per_million. RPC prices are USD per million requests, separate from blockchain gas fees. For a workload of N requests at a published price P, the service cost estimate is N / 1,000,000 * P. Sum across methods and chains for mixed workloads; account discounts and future price changes can affect the final bill.
For WebSocket subscriptions, use rpc_get_ws_pricing with a numeric chainId and optional subscriptionType, or:
Inspect account balance and spending
Create a customer management token in Mgmt Tokens. It authenticates account operations through theX-Api-Key header. Your RPC API key is a separate credential used for blockchain requests.
With ROUTEMESH_MGMT_TOKEN configured, ask your assistant:
Show my RouteMesh account balance, request count, and usage by chain for the last seven days.Call
get_usage with include: ["summary", "balance", "by_chain"] and an RFC3339 from/to window. To call the API directly, set ROUTEMESH_MGMT_TOKEN in your environment and run:
rpc_get_balance is the native token balance of an on-chain address. They are different values.
Manage keys from your agent
Uselist_api_keys to get key IDs, names, active status, allowed domains, and routing strategy. Listing does not reveal the key secrets.
To create a key, call create_api_key with allowed_domains, routing_strategy (economy or performance), and an optional name. The response includes a secret once, at creation. Store it securely.
To change a key, pass its numeric id from the list response to update_api_key, along with name, allowed_domains, or active. For example, { "id": 42, "active": false } deactivates key 42. The HTTP equivalent is PUT /api-keys/42. Do not put the secret key string in this management URL.

