api-flow-analyzer
Cloudflare Workers MCP server: api-flow-analyzer
我該用這個嗎
品質與安全性
A
根據工具定義與協定合規性的自動化分析。
上下文成本
~605Token(工具定義)
~1.0 KB典型回應大小
極小的注意力影響(128k 上下文的 0.47%)
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"api-flow-analyzer": {
"url": "https://api.lazy-mac.com/api-flow-analyzer/mcp"
}
}
}遠端端點
https://api.lazy-mac.com/api-flow-analyzer/mcpstreamable-http它能做什麼
工具清單
工具(6)
🟢 唯讀🟡 寫入🔴 刪除⚪ 未知
⚪track_call(method, endpoint, duration_ms, response_size_bytes, status_code, ...)
Record and track an individual API call with metadata
輸入結構描述
{
"type": "object",
"properties": {
"method": {
"type": "string",
"description": "HTTP method (GET, POST, etc.)"
},
"endpoint": {
"type": "string",
"description": "API endpoint URL"
},
"duration_ms": {
"type": "number",
"description": "Call duration in milliseconds"
},
"response_size_bytes": {
"type": "number",
"description": "Response payload size"
},
"status_code": {
"type": "number",
"description": "HTTP status code"
},
"service_name": {
"type": "string",
"description": "Source service identifier"
}
},
"required": [
"method",
"endpoint",
"duration_ms",
"status_code"
]
}🟢analyze_flow(calls, flow_id)
Analyze complete API call flow and identify patterns
輸入結構描述
{
"type": "object",
"properties": {
"calls": {
"type": "array",
"description": "Array of API calls with metadata",
"items": {
"type": "object",
"properties": {
"method": {
"type": "string"
},
"endpoint": {
"type": "string"
},
"duration_ms": {
"type": "number"
},
"timestamp": {
"type": "number"
}
}
}
},
"flow_id": {
"type": "string",
"description": "Unique request flow identifier"
}
},
"required": [
"calls",
"flow_id"
]
}⚪detect_redundancy(calls, threshold_pct)
Identify duplicate or redundant API calls in a flow
輸入結構描述
{
"type": "object",
"properties": {
"calls": {
"type": "array",
"description": "Array of API calls to analyze",
"items": {
"type": "object"
}
},
"threshold_pct": {
"type": "number",
"description": "Similarity threshold percentage (0-100)",
"default": 80
}
},
"required": [
"calls"
]
}⚪suggest_batching(calls, batch_size_limit)
Recommend batching opportunities for parallel API calls
輸入結構描述
{
"type": "object",
"properties": {
"calls": {
"type": "array",
"description": "Array of API calls to optimize",
"items": {
"type": "object"
}
},
"batch_size_limit": {
"type": "number",
"description": "Max items per batch",
"default": 50
}
},
"required": [
"calls"
]
}🟢calculate_savings(current_calls, optimized_calls, cost_per_call_usd, avg_latency_ms)
Calculate estimated cost and latency savings from optimizations
輸入結構描述
{
"type": "object",
"properties": {
"current_calls": {
"type": "number",
"description": "Current number of API calls"
},
"optimized_calls": {
"type": "number",
"description": "Optimized number of calls"
},
"cost_per_call_usd": {
"type": "number",
"description": "Cost per API call in USD",
"default": 0.0001
},
"avg_latency_ms": {
"type": "number",
"description": "Average latency per call in ms"
}
},
"required": [
"current_calls",
"optimized_calls"
]
}🟢get_dependency_graph(calls)
Generate dependency graph of API calls showing call sequence and relationships
輸入結構描述
{
"type": "object",
"properties": {
"calls": {
"type": "array",
"description": "Array of API calls with dependencies",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"endpoint": {
"type": "string"
},
"depends_on": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
},
"required": [
"calls"
]
}社群
證據
近期觀測
已驗證未記錄版本6 個工具
已驗證未記錄版本6 個工具