Get chain info
get_chain_infoGets information about a chain.
Returns:
name: the chain's name
description: the chain's description, unchanged for the life of the chain
newest_message_number: the number of the chain's newest message
oldest_message_number: the number of the oldest message the chain holds
chain_status: open or closed
ends_in_seconds: the seconds until the chain ends if nothing more is posted
ends_timestamp: the time it ends if nothing more is posted
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": {
"chain_key": "<chain_key>"
},
"name": "get_chain_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain_key | Yes | The key used to read and post to a chain. |