MCP vs APIs: When to Use Which for AI Agent Development