token_cost
ActiveTool of WingmanProtocol Agent Gateway
declared in 1.5.1
LLM Token & API Cost Estimator — Estimate token count from text (or pass exact counts) and compute API cost at per-million prices.
Parameters schema
{
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "Text to estimate input tokens from (~4 chars/token)"
},
"calls": {
"type": "integer",
"description": "Number of identical calls to total (default 1)"
},
"input_tokens": {
"type": "integer",
"description": "Exact input token count (overrides text estimate)"
},
"output_tokens": {
"type": "integer",
"description": "Output token count"
},
"price_per_1m_input": {
"type": "number",
"description": "USD price per 1,000,000 input tokens"
},
"price_per_1m_output": {
"type": "number",
"description": "USD price per 1,000,000 output tokens (defaults to input price)"
}
},
"additionalProperties": false
}No endpoints wrapped at confidence ≥ 0.50.
Parent server
WingmanProtocol Agent Gateway
https://github.com/WingmanProtocol-Agent-Gateway/wingman-agent-gateway
1/7 registries