You're viewing a demo portfolio

Join the waitlist
PRSM

preview_cost

Active

Tool of Agent Broker

declared in 0.1.0

Return an expected cost estimate, latency estimate, and success-probability estimate for a proposed call before execution. Accuracy SLO: actual cost within ±5% of preview. EXAMPLE USER QUERIES THAT MATCH THIS TOOL: user: "How much will this SMS cost me?" -> call preview_cost({"operation": "send_message", "params": {"channel_preference": "sms"}}) user: "Estimate the cost of booking via voice fallback" -> call preview_cost({"operation": "schedule_appointment"}) WHEN TO USE: Use before any operation when the agent is operating under a budget constraint and needs to decide whether to proceed. WHEN NOT TO USE: Do not use in a hot loop — cache the result for at least 60 seconds if repeating the same preview. COST: $0.001 per_call LATENCY: ~100ms

Parameters schema

{
  "type": "object",
  "required": [
    "operation",
    "params"
  ],
  "properties": {
    "params": {
      "type": "object",
      "description": "The same request body you would pass to the operation"
    },
    "operation": {
      "type": "string"
    }
  }
}

What this tool wraps· 1 endpoint

min confidence0.700.50

Parent server

Agent Broker

https://github.com/basilalshukaili/agentbroker

1/7 registries
View full server →