Koskamo

Estimate RPC call costs before execution

The agent provides a cost estimate for planned blockchain operations by fetching current pricing and CU weights, allowing the user to budget for API usage.

How it works

Read-onlyFinance and payments

The agent accesses the pricing information by calling the GET /v1/plans endpoint or using the MCP server's documentation tools to retrieve the JSON response containing method CU weights. It identifies the specific RPC methods the user intends to call and sums their associated Compute Unit (CU) costs. It then converts these CU costs into monetary values based on the current pricing rate (e.g., $1.50 per 1,000,000 requests for eth_call) and reports the estimated total cost to the user before any data-changing or expensive read operations are performed.

Prompt

Paste this into an agent that has the servers below connected. Adjust the names and dates to your own.

Prompt for Estimate RPC call costs before execution
Fetch the current pricing plan details using the MCP server's documentation or API tools. Identify the CU weight for the 'eth_call' method. Calculate the estimated cost for 10,000 such calls based on the rate of $1.50 per 1,000,000 requests. Report the total estimated cost.

MCP servers it needs

Source

The vendor page this playbook is drawn from, and the passage that supports it.

GET /v1/plans returns every method's CU weight as JSON, so cost can be estimated before the first call.
BlockVectra MCP documentation

Each playbook is drawn from the vendor page it cites and reviewed by Koskamo before it is published. Koskamo does not run these servers or your agent: check what each tool will do before you let it act on your accounts.