get-prompt-enhancer-cost
Calculate the token cost of enhancing a prompt for a specified model, and flag models that cannot be enhanced so you can avoid failed requests.
Instructions
Return the token cost of enhancing a prompt for a given model. Wraps syntx.promptEnhancer.getCost. Hits GET /api/v1/prompt-enhancer/cost?model_type=…. 422/model_not_enhanceable when the model is not enhanceable.
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": {
"model_type": "<model_type>"
},
"name": "get-prompt-enhancer-cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model_type | Yes | Model identifier (required). |