Cloudflare Workers MCP server: api-response-cost-analyzer
Maintain this server? Claim it
Call this server's tools from your browser. Nothing to install.
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
Analyze API response content and estimate token count
API response content
This tool isn't marked read-only, so it may change something on the server or in an account you connected.
Analyze API response content and estimate token count
| Argument | Type | Description |
|---|---|---|
| content* | string | object | API response content |
{
"type": "object",
"required": [
"content"
],
"properties": {
"content": {
"type": [
"string",
"object"
],
"description": "API response content"
}
}
}Compare API response costs across multiple LLM models
| Argument | Type | Description |
|---|---|---|
| models | array | Array of model IDs to compare |
| content* | string | object | API response content |
| input_tokens | number | Optional input token count |
{
"type": "object",
"required": [
"content"
],
"properties": {
"models": {
"type": "array",
"items": {
"type": "string"
},
"description": "Array of model IDs to compare"
},
"content": {
"type": [
"string",
"object"
],
"description": "API response content"
},
"input_tokens": {
"type": "number",
"description": "Optional input token count"
}
}
}Estimate API response cost for a specific LLM model
| Argument | Type | Description |
|---|---|---|
| model* | string | Model ID (gpt-4, claude-3.5-sonnet, etc) |
| content* | string | object | API response content |
| input_tokens | number | Optional input token count |
{
"type": "object",
"required": [
"content",
"model"
],
"properties": {
"model": {
"type": "string",
"description": "Model ID (gpt-4, claude-3.5-sonnet, etc)"
},
"content": {
"type": [
"string",
"object"
],
"description": "API response content"
},
"input_tokens": {
"type": "number",
"description": "Optional input token count"
}
}
}Get optimization suggestions to reduce API response cost
| Argument | Type | Description |
|---|---|---|
| content* | string | object | API response content |
{
"type": "object",
"required": [
"content"
],
"properties": {
"content": {
"type": [
"string",
"object"
],
"description": "API response content"
}
}
}