Model tool calling
Model tool calling in the Carbium Library: 8 working Solana examples, among them Chain tools for local models and Token-efficient transaction output.
- Chain tools for local models SI0128
Three read-only Solana tools a small local LLM can call: flat schemas, forgiving argument parsing and short results, over Carbium RPC.
- Token-efficient transaction output SI0127
Read getTransaction accountKeys as addresses, lookup table entries included, and cut the answer to a compact summary for a model.
- Chain clock tool for models SI0126
One getEpochInfo read gives a model the slot, block height, epoch and transaction count from the same moment, with no wallet or program.
- Strict JSON wallet summaries SI0046
Fill a wallet summary from three chain reads, let a model write one sentence, and check the whole object with a hand-written validator.
- Live token price tool SI0045
One price handler a model can call as an Anthropic input_schema tool or an OpenAI function, returning mint, price, slot and the time of the read.
- Custom GPT action for chain reads SI0024
A small service that gives a Custom GPT two read-only Solana operations through an OpenAPI schema, with the Carbium key kept on your server.
- LLM tool calling SI0005
How a model's tool call reaches Solana RPC: the schema you send, the tool_use block back, the tool_result you return, shown with three read-only tools.
- Read-only model tools SI0001
getAccountInfo only reads; a fixed method allowlist and two retry rules keep a model's Solana tools to reads.