api-response-cost-analyzer
Cloudflare Workers MCP server: api-response-cost-analyzer
我该使用它吗
质量与安全性
A
发现(2)
- LOW在 estimate_cost 中
- LOW在 compare_models 中
基于对工具定义和协议合规性的自动分析。
上下文开销
~290token 数(工具定义)
~649 B典型响应大小
对注意力的影响极小(占 128k 上下文窗口的 0.23%)
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"api-response-cost-analyzer": {
"url": "https://api.lazy-mac.com/api-response-cost-analyzer/mcp"
}
}
}远程端点
https://api.lazy-mac.com/api-response-cost-analyzer/mcpstreamable-http它能做什么
工具清单
工具(4)
🟢 只读🟡 写入🔴 删除⚪ 未知
🟢analyze_response(content)
Analyze API response content and estimate token count
输入模式
{
"type": "object",
"properties": {
"content": {
"type": [
"string",
"object"
],
"description": "API response content"
}
},
"required": [
"content"
]
}⚪estimate_cost(content, model, input_tokens)
Estimate API response cost for a specific LLM model
输入模式
{
"type": "object",
"properties": {
"content": {
"type": [
"string",
"object"
],
"description": "API response content"
},
"model": {
"type": "string",
"description": "Model ID (gpt-4, claude-3.5-sonnet, etc)"
},
"input_tokens": {
"type": "number",
"description": "Optional input token count"
}
},
"required": [
"content",
"model"
]
}⚪compare_models(content, input_tokens, models)
Compare API response costs across multiple LLM models
输入模式
{
"type": "object",
"properties": {
"content": {
"type": [
"string",
"object"
],
"description": "API response content"
},
"input_tokens": {
"type": "number",
"description": "Optional input token count"
},
"models": {
"type": "array",
"items": {
"type": "string"
},
"description": "Array of model IDs to compare"
}
},
"required": [
"content"
]
}🟢optimize_payload(content)
Get optimization suggestions to reduce API response cost
输入模式
{
"type": "object",
"properties": {
"content": {
"type": [
"string",
"object"
],
"description": "API response content"
}
},
"required": [
"content"
]
}社区
证据
最近观测
已验证未记录版本4 个工具
已验证未记录版本4 个工具
已验证未记录版本4 个工具