convert_chain_id_to_name
Converts numeric chain IDs into readable blockchain names like Arbitrum or Optimism, making API responses clearer. Returns 'Unknown Chain (ID)' when the ID is not found.
Instructions
Convert a chain ID to its human-readable name.
WORKFLOW INSTRUCTIONS:
- Use this to make API responses more readable
- Chain IDs are numeric strings, names are like "Arbitrum", "Optimism"
- Returns "Unknown Chain (ID)" if chain ID not found
DATA FORMATTING:
- Always use this before displaying chain information to users
- Combine with other tools for complete chain analysisTool 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": {
"chainId": "<chainId>"
},
"name": "convert_chain_id_to_name"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chainId | Yes | The chain ID to convert |