{
  "name": "stratoforce-ai",
  "version": "2.0.0",
  "capabilities": {
    "resources": {
      "listChanged": true
    },
    "tools": {
      "listChanged": true
    },
    "prompts": {
      "listChanged": true
    }
  },
  "tools": [
    {
      "name": "get_pipeline_health",
      "description": "Comprehensive pipeline health: stage distribution, velocity, win rate, stale deals"
    },
    {
      "name": "get_deal_details",
      "description": "Full deal info: stage, contacts, conversations, competitive intel",
      "inputSchema": {
        "type": "object",
        "properties": {
          "opportunityId": {
            "type": "string",
            "description": "Salesforce Opportunity ID"
          }
        },
        "required": [
          "opportunityId"
        ]
      }
    },
    {
      "name": "get_pre_call_briefing",
      "description": "AI pre-call briefing: stakeholders, risks, talking points",
      "inputSchema": {
        "type": "object",
        "properties": {
          "opportunityId": {
            "type": "string"
          }
        },
        "required": [
          "opportunityId"
        ]
      }
    },
    {
      "name": "scan_risks",
      "description": "Proactive risk scan: stale deals, past-due, dark champions"
    },
    {
      "name": "search_deals",
      "description": "Search deals by name, account, stage, or owner",
      "inputSchema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string"
          },
          "stage": {
            "type": "string"
          }
        },
        "required": [
          "query"
        ]
      }
    },
    {
      "name": "get_competitive_intel",
      "description": "Battle card data for a competitor",
      "inputSchema": {
        "type": "object",
        "properties": {
          "competitor": {
            "type": "string"
          }
        },
        "required": [
          "competitor"
        ]
      }
    },
    {
      "name": "get_champion_status",
      "description": "Champion health: engagement score, dark risk",
      "inputSchema": {
        "type": "object",
        "properties": {
          "opportunityId": {
            "type": "string"
          }
        },
        "required": [
          "opportunityId"
        ]
      }
    },
    {
      "name": "get_whitespace_analysis",
      "description": "Upsell/cross-sell opportunities for an account",
      "inputSchema": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string"
          }
        },
        "required": [
          "accountId"
        ]
      }
    },
    {
      "name": "get_revenue_alerts",
      "description": "Recent revenue alerts: sentiment shifts, competitor mentions, risk signals",
      "inputSchema": {
        "type": "object",
        "properties": {
          "days": {
            "type": "number",
            "default": 7
          }
        }
      }
    },
    {
      "name": "get_win_loss_analysis",
      "description": "Win/loss patterns: win rate, loss reasons, trends",
      "inputSchema": {
        "type": "object",
        "properties": {
          "period": {
            "type": "string",
            "default": "THIS_QUARTER"
          }
        }
      }
    },
    {
      "name": "get_conversation_insights",
      "description": "Conversation analysis: sentiment, topics, competitor mentions",
      "inputSchema": {
        "type": "object",
        "properties": {
          "opportunityId": {
            "type": "string"
          }
        },
        "required": [
          "opportunityId"
        ]
      }
    },
    {
      "name": "get_account_health",
      "description": "Account health score and engagement signals",
      "inputSchema": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string"
          }
        },
        "required": [
          "accountId"
        ]
      }
    },
    {
      "name": "get_stage_velocity",
      "description": "Deal velocity and bottleneck identification"
    },
    {
      "name": "get_leaderboard",
      "description": "Sales team performance rankings",
      "inputSchema": {
        "type": "object",
        "properties": {
          "period": {
            "type": "string",
            "default": "THIS_QUARTER"
          }
        }
      }
    },
    {
      "name": "ask_stratoforce",
      "description": "Natural language query about revenue data",
      "inputSchema": {
        "type": "object",
        "properties": {
          "question": {
            "type": "string"
          }
        },
        "required": [
          "question"
        ]
      }
    }
  ],
  "resources": [
    {
      "uri": "stratoforce://pipeline/summary",
      "name": "pipeline-summary",
      "description": "Pipeline summary by stage"
    },
    {
      "uri": "stratoforce://alerts/active",
      "name": "active-alerts",
      "description": "Active revenue alerts"
    },
    {
      "uri": "stratoforce://pipeline/top-deals",
      "name": "top-deals",
      "description": "Top 15 deals by amount"
    },
    {
      "uri": "stratoforce://forecast/current",
      "name": "forecast-snapshot",
      "description": "Current quarter forecast"
    }
  ],
  "prompts": [
    {
      "name": "pipeline_review",
      "description": "Weekly pipeline review — health, risks, focus areas"
    },
    {
      "name": "deal_coaching",
      "description": "Deep-dive deal coaching with recommendations"
    },
    {
      "name": "forecast_prep",
      "description": "Forecast call preparation with commit/best case/upside"
    },
    {
      "name": "account_planning",
      "description": "Strategic account planning with whitespace analysis"
    }
  ],
  "_note": "For full MCP protocol (Streamable HTTP with sessions), use the self-hosted server at your org. This endpoint provides tool discovery and REST API access."
}